-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboard.admin.model.php
More file actions
71 lines (62 loc) · 1.75 KB
/
board.admin.model.php
File metadata and controls
71 lines (62 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* boardAdminModel class
* Board the module's admin model class
*
* @author NHN (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 */