mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 2662 member, layout
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12251 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aba8de04be
commit
cec308eef1
15 changed files with 8864 additions and 8331 deletions
|
|
@ -1,53 +1,58 @@
|
|||
<?php
|
||||
/**
|
||||
* @class memberAPI
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* API Processing of View Action in the member module
|
||||
**/
|
||||
/**
|
||||
* @class memberAPI
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* API Processing of View Action in the member module
|
||||
*/
|
||||
class memberAPI extends member
|
||||
{
|
||||
/**
|
||||
* Content List
|
||||
*
|
||||
* @param Object $oModule
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
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'));
|
||||
}
|
||||
|
||||
class memberAPI extends member {
|
||||
/**
|
||||
* Arrange Contents
|
||||
*
|
||||
* @param array $content_list
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function arrangeContentList($content_list)
|
||||
{
|
||||
$output = array();
|
||||
if(count($content_list))
|
||||
{
|
||||
foreach($content_list as $key => $val) $output[] = $this->arrangeContent($val);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Content List
|
||||
*
|
||||
* @param Object $oModule
|
||||
*
|
||||
* @return void
|
||||
**/
|
||||
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'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Arrange Contents
|
||||
*
|
||||
* @param array $content_list
|
||||
*
|
||||
* @return array
|
||||
**/
|
||||
function arrangeContentList($content_list) {
|
||||
$output = array();
|
||||
if(count($content_list)) {
|
||||
foreach($content_list as $key => $val) $output[] = $this->arrangeContent($val);
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Arrange Contents
|
||||
*
|
||||
* @param array $content_list
|
||||
*
|
||||
* @return array
|
||||
**/
|
||||
function arrangeContent($content) {
|
||||
$output = null;
|
||||
if($content){
|
||||
$output= $content->gets('document_srl','category_srl','nick_name','user_id','user_name','title','content','tags','voted_count','blamed_count','comment_count','regdate','last_update','extra_vars','status');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
/**
|
||||
* Arrange Contents
|
||||
*
|
||||
* @param array $content_list
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function arrangeContent($content)
|
||||
{
|
||||
$output = null;
|
||||
if($content)
|
||||
{
|
||||
$output= $content->gets('document_srl','category_srl','nick_name','user_id','user_name','title','content','tags','voted_count','blamed_count','comment_count','regdate','last_update','extra_vars','status');
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
/* End of file member.api.php */
|
||||
/* Location: ./modules/member/member.api.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue