mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@131 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2525fe0838
commit
d21fbeb6c6
19 changed files with 132 additions and 65 deletions
|
|
@ -35,10 +35,11 @@
|
|||
/**
|
||||
* @brief 댓글 가져오기
|
||||
**/
|
||||
function getComment($comment_srl) {
|
||||
function getComment($comment_srl, $is_admin = false) {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->comment_srl = $comment_srl;
|
||||
$output = $oDB->executeQuery('comment.getComment', $args);
|
||||
if($is_admin || $this->isGranted($comment_srl)) $output->data->is_granted = true;
|
||||
return $output->data;
|
||||
}
|
||||
|
||||
|
|
@ -68,7 +69,7 @@
|
|||
/**
|
||||
* @brief document_srl에 해당하는 문서의 댓글 목록을 가져옴
|
||||
**/
|
||||
function getCommentList($document_srl) {
|
||||
function getCommentList($document_srl, $is_admin = false) {
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
$args->document_srl = $document_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue