mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +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
|
|
@ -48,6 +48,7 @@
|
||||||
<action name="dispPlanetTagSearch" type="view" />
|
<action name="dispPlanetTagSearch" type="view" />
|
||||||
<action name="dispPlanetContentSearch" type="view" />
|
<action name="dispPlanetContentSearch" type="view" />
|
||||||
<action name="dispPlanetContentTagSearch" type="view" />
|
<action name="dispPlanetContentTagSearch" type="view" />
|
||||||
|
<action name="dispReplyList" type="view" />
|
||||||
|
|
||||||
<action name="getPlanetMemoList" type="model" />
|
<action name="getPlanetMemoList" type="model" />
|
||||||
<action name="getPlanetReplyList" type="model" />
|
<action name="getPlanetReplyList" type="model" />
|
||||||
|
|
|
||||||
|
|
@ -37,12 +37,30 @@
|
||||||
$oModule->add('pageNavigation', Context::get('page_navigation'));
|
$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) {
|
function arrangeContentList($content_list) {
|
||||||
$output = array();
|
$output = array();
|
||||||
if(count($content_list)) {
|
if(count($content_list)) {
|
||||||
foreach($content_list as $key => $val) {
|
foreach($content_list as $key => $val) {
|
||||||
$item = null;
|
$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();
|
$item->photo = $val->getPlanetPhotoSrc();
|
||||||
$output[] = $item;
|
$output[] = $item;
|
||||||
}
|
}
|
||||||
|
|
@ -50,6 +68,7 @@
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function arrangePlanetList($planet_list) {
|
function arrangePlanetList($planet_list) {
|
||||||
$output = array();
|
$output = array();
|
||||||
if(count($planet_list)) {
|
if(count($planet_list)) {
|
||||||
|
|
|
||||||
|
|
@ -339,6 +339,14 @@
|
||||||
$this->setTemplateFile('search_planet');
|
$this->setTemplateFile('search_planet');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function dispReplyList(){
|
||||||
|
$page = Context::get('page');
|
||||||
|
$document_srl = Context::get('document_srl');
|
||||||
|
$oPlanetModel = &getModel('planet');
|
||||||
|
$output = $oPlanetModel->getReplyList($document_srl,$page);
|
||||||
|
Context::set('reply_list',$output->data);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<!--@foreach($content_list as $no => $item)-->
|
<!--@foreach($content_list as $no => $item)-->
|
||||||
<div class="commentBody <!--@if($planet->getMid() == $item->getPlanetMid())-->myPlanet<!--@end-->">
|
<div id="commentBody:{$item->get('document_srl')}" class="commentBody <!--@if($planet->getMid() == $item->getPlanetMid())-->myPlanet<!--@end-->">
|
||||||
<!--// Original Text -->
|
<!--// Original Text -->
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<!--@if($planet->getMid() != $item->getPlanetMid())-->
|
<!--@if($planet->getMid() != $item->getPlanetMid())-->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue