mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 16:59:55 +09:00
document모듈에 20개의 확장 필드 추가 및 게시판모듈에서 이를 관리자가 설정하여 사용할 수 있게 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1985 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
810db4b33a
commit
409d82fb49
40 changed files with 1027 additions and 13 deletions
|
|
@ -167,6 +167,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
function isExtraVarsExists() {
|
||||
for($i=1;$i<=20;$i++) {
|
||||
if($this->get('extra_vars'.$i)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function getExtraValue($key) {
|
||||
$val = $this->get('extra_vars'.$key);
|
||||
if(strpos($val,'|@|')!==false) $val = explode('|@|', $val);
|
||||
return $val;
|
||||
}
|
||||
|
||||
function getCommentCount() {
|
||||
if(!$this->isGranted() && $this->isSecret()) return 0;
|
||||
return $this->get('comment_count');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue