mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
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:
parent
4fb4c572c3
commit
ec950bd765
4 changed files with 30 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue