planet api 추가 (reply comment_count)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4878 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-11-18 05:19:47 +00:00
parent 4fb4c572c3
commit ec950bd765
4 changed files with 30 additions and 2 deletions

View file

@ -37,12 +37,30 @@
$oModule->add('pageNavigation', Context::get('page_navigation'));
}
function dispReplyList(&$oModule){
$reply_list = Context::get('reply_list');
$output = array();
if(count($reply_list)) {
foreach($reply_list as $key => $val) {
unset($obj);
$obj->mid = $val->mid;
$obj->document_srl = $val->document_srl;
$obj->nick_name = $val->nick_name;
$obj->content = $val->content;
$obj->regdate = $val->regdate;
$output[] = $obj;
}
}
$oModule->add('planetReplyList', $output );
$oModule->add('pageNavigation', Context::get('page_navigation'));
}
function arrangeContentList($content_list) {
$output = array();
if(count($content_list)) {
foreach($content_list as $key => $val) {
$item = null;
$item = $val->gets('mid','document_srl','nick_name','content','postscript','voted_count','regdate','tag_list');
$item = $val->gets('mid','document_srl','nick_name','content','postscript','voted_count','regdate','tag_list','comment_count');
$item->photo = $val->getPlanetPhotoSrc();
$output[] = $item;
}
@ -50,6 +68,7 @@
return $output;
}
function arrangePlanetList($planet_list) {
$output = array();
if(count($planet_list)) {