board open api adding act 'dispBoardContentFileList'

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5249 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-01-06 08:37:33 +00:00
parent 714d11ca61
commit a6f4777541
3 changed files with 41 additions and 3 deletions

View file

@ -43,6 +43,15 @@
$oModule->add('oDocument',$this->arrangeContent(Context::get('oDocument')));
}
/**
* @brief 컨텐츠의 파일 목록
**/
function dispBoardContentFileList(&$oModule) {
$oModule->add('file_list',$this->arrangeFile(Context::get('file_list')));
}
/**
* @brief 태그 목록
**/
@ -50,8 +59,10 @@
$oModule->add('tag_list',Context::get('tag_list'));
}
function dispBoardConentCommentList(&$oModule) {
/**
* @brief 컨텐츠의 코멘트 목록
**/
function dispBoardContentCommentList(&$oModule) {
$oModule->add('comment_list',$this->arrangeComment(Context::get('comment_list')));
}
@ -83,5 +94,24 @@
}
return $output;
}
function arrangeFile($file_list) {
$output = array();
if(count($file_list)) {
foreach($file_list as $key => $val){
$item = null;
$item->sid = $val->sid;
$item->download_count = $val->download_count;
$item->source_filename = $val->source_filename;
$item->uploaded_filename = $val->uploaded_filename;
$item->file_size = $val->file_size;
$item->regdate = $val->regdate;
$item->download_url = $val->download_url;
$output[] = $item;
}
}
return $output;
}
}
?>