mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 18:29:55 +09:00
위키XE의 공헌자 및 댓글 정상적으로 나오도록 수정하고 히스토리를 일단 구현하여 보는 기능은 가능하도록 개선. (diff는 차후에)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6206 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
06d59f203c
commit
78b9eddba9
11 changed files with 75 additions and 45 deletions
|
|
@ -13,10 +13,26 @@
|
|||
}
|
||||
|
||||
function getContributors($document_srl) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
if(!$oDocument->isExists()) return array();
|
||||
|
||||
$args->document_srl = $document_srl;
|
||||
$output = executeQueryArray("wiki.getContributors", $args);
|
||||
if(!$output->data) return array();
|
||||
return $output->data;
|
||||
if($output->data) $list = $output->data;
|
||||
else $list = array();
|
||||
|
||||
$item->member_srl = $oDocument->getMemberSrl();
|
||||
$item->nick_name = $oDocument->getNickName();
|
||||
$contributors[] = $item;
|
||||
for($i=0,$c=count($list);$i<$c;$i++) {
|
||||
unset($item);
|
||||
$item->member_srl = $list[$i]->member_srl;
|
||||
$item->nick_name = $list[$i]->nick_name;
|
||||
if($item->member_srl == $oDocument->getMemberSrl()) continue;
|
||||
$contributors[] = $item;
|
||||
}
|
||||
return $contributors;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue