mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
*_documents 테이블의 extra_vars필드를 활용하기 위한 수정
- extra_vars필드 값 설정 반영하도록 (글 추가/수정시) - queries/insertDocument.xml, queries/updateDocument.xml 에서 extra_vars필드 추가. - documentItem::getExtraVarsValue() 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3126 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5ebbd79d36
commit
71554ee2d8
4 changed files with 23 additions and 9 deletions
|
|
@ -300,6 +300,12 @@
|
|||
return $val;
|
||||
}
|
||||
|
||||
function getExtraVarsValue($key) {
|
||||
$extra_vals = unserialize($this->get('extra_vars'));
|
||||
$val = $extra_vals->$key;
|
||||
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