mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
member open api
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6358 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3c9b6d7caf
commit
d21849554e
1 changed files with 40 additions and 0 deletions
40
modules/member/member.api.php
Normal file
40
modules/member/member.api.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
/**
|
||||
* @class memberAPI
|
||||
* @author sol(sol@ngleader.com)
|
||||
* @brief member 모듈의 View Action에 대한 API 처리
|
||||
**/
|
||||
|
||||
class memberAPI extends member {
|
||||
|
||||
|
||||
/**
|
||||
* @brief 컨텐츠 목록
|
||||
**/
|
||||
function dispSavedDocumentList(&$oModule) {
|
||||
$document_list = $this->arrangeContentList(Context::get('document_list'));
|
||||
$oModule->add('document_list',$document_list);
|
||||
$oModule->add('page_navigation',Context::get('page_navigation'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
function arrangeContentList($content_list) {
|
||||
$output = array();
|
||||
if(count($content_list)) {
|
||||
foreach($content_list as $key => $val) $output[] = $this->arrangeContent($val);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
function arrangeContent($content) {
|
||||
$output = null;
|
||||
if($content){
|
||||
$output= $content->gets('document_srl','category_srl','is_secret','nick_name','user_id','user_name','title','content','tags','voted_count','blamed_count','comment_count','regdate','last_update','extra_vars');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue