32 if($api_type ==
'summary')
35 $content_cut_size = $content_cut_size?$content_cut_size:50;
36 foreach($document_list as $k=>$v)
39 $oDocument->setAttribute($v,
false);
40 $document_list[$k]->content = $oDocument->getSummary($content_cut_size);
45 $oModule->add(
'document_list',$document_list);
46 $oModule->add(
'page_navigation',
Context::get(
'page_navigation'));
54 $oModule->add(
'category_list',
Context::get(
'category_list'));
63 if($oDocument->isGranted())
76 if($oDocument->isAccessible())
82 $oModule->add(
'file_list', array());
103 if(count($content_list)) {
111 $oBoardView =
getView(
'board');
114 $output = $content->gets(
'document_srl',
'category_srl',
'member_srl',
'nick_name',
'title',
'content',
'tags',
'readed_count',
'voted_count',
'blamed_count',
'comment_count',
'regdate',
'last_update',
'extra_vars',
'status');
116 $output->content = $content->getContent(
false,
false,
true,
false,
true);
122 if ($t_width && $t_height && $t_type && $content->thumbnailExists($t_width, $t_height, $t_type)) {
123 $output->thumbnail_src = $content->getThumbnail($t_width, $t_height, $t_type);
131 if(count($comment_list) > 0 ) {
132 foreach($comment_list as $key => $val){
134 $item = $val->gets(
'comment_srl',
'parent_srl',
'depth',
'nick_name',
'content',
'is_secret',
'voted_count',
'blamed_count',
'regdate',
'last_update');
136 $item->content = $val->getContent(
false,
false,
false);
147 if(count($file_list) > 0) {
148 foreach($file_list as $key => $val){
149 $item =
new stdClass;
150 $item->download_count = $val->download_count;
151 $item->source_filename = $val->source_filename;
152 $item->file_size = $val->file_size;
153 $item->regdate = $val->regdate;
163 foreach($list as $key => $val){
164 $item =
new stdClass;
165 $item->name = $val->name;
166 $item->type = $val->type;
167 $item->desc = $val->desc;
168 $item->value = $val->value;
dispBoardContentView(&$oModule)
board content view
foreach($sitemap as $id=> &$val) $extra_vars
board module View Action에 대한 API 처리
arrangeContentList($content_list)
dispBoardContentList(&$oModule)
content list
dispBoardContentCommentList(&$oModule)
comments list
dispBoardCategoryList(&$oModule)
category list
dispBoardNoticeList(&$oModule)
notice list
dispBoardTagList(&$oModule)
tag list
dispBoardContentFileList(&$oModule)
contents file list
arrangeComment($comment_list)