mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
#314 board 모듈을 코어에 포함
This commit is contained in:
parent
46900dfc8b
commit
9c76b509d9
103 changed files with 8382 additions and 0 deletions
73
modules/board/board.admin.model.php
Normal file
73
modules/board/board.admin.model.php
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<?php
|
||||
/* Copyright (C) NAVER <http://www.navercorp.com> */
|
||||
|
||||
/**
|
||||
* boardAdminModel class
|
||||
* Board the module's admin model class
|
||||
*
|
||||
* @author NAVER (developers@xpressengine.com)
|
||||
* @package /modules/board
|
||||
* @version 0.1
|
||||
*/
|
||||
class boardAdminModel extends board
|
||||
{
|
||||
/**
|
||||
* Initialization
|
||||
* @return void
|
||||
*/
|
||||
function init()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the board module admin simple setting page
|
||||
* @return void
|
||||
*/
|
||||
public function getBoardAdminSimpleSetup($moduleSrl, $setupUrl)
|
||||
{
|
||||
if(!$moduleSrl)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Context::set('module_srl', $moduleSrl);
|
||||
|
||||
// default module info setting
|
||||
$oModuleModel = getModel('module');
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByModuleSrl($moduleSrl);
|
||||
$moduleInfo->use_status = explode('|@|', $moduleInfo->use_status);
|
||||
if($moduleInfo)
|
||||
{
|
||||
Context::set('module_info', $moduleInfo);
|
||||
}
|
||||
|
||||
// get document status list
|
||||
$oDocumentModel = getModel('document');
|
||||
$documentStatusList = $oDocumentModel->getStatusNameList();
|
||||
Context::set('document_status_list', $documentStatusList);
|
||||
|
||||
// set order target list
|
||||
foreach($this->order_target AS $key)
|
||||
{
|
||||
$order_target[$key] = Context::getLang($key);
|
||||
}
|
||||
$order_target['list_order'] = Context::getLang('document_srl');
|
||||
$order_target['update_order'] = Context::getLang('last_update');
|
||||
Context::set('order_target', $order_target);
|
||||
|
||||
// for advanced language & url
|
||||
$oAdmin = getClass('admin');
|
||||
Context::set('setupUrl', $setupUrl);
|
||||
|
||||
// Extract admin ID set in the current module
|
||||
$admin_member = $oModuleModel->getAdminId($moduleSrl);
|
||||
Context::set('admin_member', $admin_member);
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$html = $oTemplate->compile($this->module_path.'tpl/', 'board_setup_basic');
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
}
|
||||
/* End of file board.admin.model.php */
|
||||
/* Location: ./modules/board/board.admin.model.php */
|
||||
Loading…
Add table
Add a link
Reference in a new issue