XE의 문서 다국어 기능 지원.

- 글작성시 작성당시 작성자의 언어코드가 문서의 기본 언어로 문서 저장됨
- 글 수정시 글 수정 당시 수정자의 언어코드가 기본 언어와 다르면 원글을 수정하는 것이 아니라 새로운 언어코드로 등록됨
- 글을 볼때 보는 사용자의 언어코드에 따라서 같은 언어코드 > 원문서 기본 언어 > 기타 로 보여짐
- 즉 하나의 글에 대해서 여러 언어코드가 지원이 되는 구조임
- 제목/ 내용/ 확장변수 모두 적용


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5808 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-03-09 09:27:39 +00:00
parent c7af0de65e
commit 02b8e5684f
15 changed files with 249 additions and 133 deletions

View file

@ -8,6 +8,7 @@
class documentItem extends Object {
var $document_srl = 0;
var $lang_code = null;
var $allow_trackback_status = null;
@ -36,6 +37,7 @@
return;
}
$this->document_srl = $attribute->document_srl;
$this->lang_code = $attribute->lang_code;
$this->adds($attribute);
// 태그 정리
@ -163,6 +165,10 @@
$oCommunicationController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false);
}
function getLangCode() {
return $this->get('lang_code');
}
function getIpaddress() {
if($this->isGranted()) return $this->get('ipaddress');
return preg_replace('/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/','*.$2.$3.$4', $this->get('ipaddress'));
@ -378,6 +384,7 @@
function getExtraVars() {
if(!$this->get('module_srl') || !$this->document_srl) return null;
$oDocumentModel = &getModel('document');
return $oDocumentModel->getExtraVars($this->get('module_srl'), $this->document_srl);
}