XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
board
board.admin.model.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
12
class
boardAdminModel
extends
board
13
{
18
function
init
()
19
{
20
}
21
26
public
function
getBoardAdminSimpleSetup
($moduleSrl, $setupUrl)
27
{
28
if
(!$moduleSrl)
29
{
30
return
;
31
}
32
Context::set
(
'module_srl'
, $moduleSrl);
33
34
// default module info setting
35
$oModuleModel
=
getModel
(
'module'
);
36
$moduleInfo
=
$oModuleModel
->getModuleInfoByModuleSrl($moduleSrl);
37
$moduleInfo
->use_status = explode(
'|@|'
,
$moduleInfo
->use_status);
38
if
(
$moduleInfo
)
39
{
40
Context::set
(
'module_info'
,
$moduleInfo
);
41
}
42
43
// get document status list
44
$oDocumentModel
=
getModel
(
'document'
);
45
$documentStatusList =
$oDocumentModel
->getStatusNameList();
46
Context::set
(
'document_status_list'
, $documentStatusList);
47
48
// set order target list
49
foreach
($this->order_target AS $key)
50
{
51
$order_target
[$key] =
Context::getLang
($key);
52
}
53
$order_target
[
'list_order'
] =
Context::getLang
(
'document_srl'
);
54
$order_target
[
'update_order'
] =
Context::getLang
(
'last_update'
);
55
Context::set
(
'order_target'
,
$order_target
);
56
57
// for advanced language & url
58
$oAdmin =
getClass
(
'admin'
);
59
Context::set
(
'setupUrl'
, $setupUrl);
60
61
// Extract admin ID set in the current module
62
$admin_member =
$oModuleModel
->getAdminId($moduleSrl);
63
Context::set
(
'admin_member'
, $admin_member);
64
65
$oTemplate = &
TemplateHandler::getInstance
();
66
$html = $oTemplate->compile($this->module_path.
'tpl/'
,
'board_setup_basic'
);
67
68
return
$html;
69
}
70
71
}
72
/* End of file board.admin.model.php */
73
/* Location: ./modules/board/board.admin.model.php */
$oModuleModel
$oModuleModel
Definition:
ko.install.php:236
TemplateHandler\getInstance
static & getInstance()
Definition:
TemplateHandler.class.php:60
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
boardAdminModel\getBoardAdminSimpleSetup
getBoardAdminSimpleSetup($moduleSrl, $setupUrl)
Definition:
board.admin.model.php:26
boardAdminModel
Definition:
board.admin.model.php:12
$oDocumentModel
$oDocumentModel
Definition:
ko.install.php:259
Context\getLang
getLang($code)
Definition:
Context.class.php:1008
$moduleInfo
$moduleInfo
Definition:
ko.install.php:253
getModel
getModel($module_name)
Definition:
func.inc.php:145
boardAdminModel\init
init()
Definition:
board.admin.model.php:18
board\$order_target
$order_target
Definition:
board.class.php:14
board
board module high class
Definition:
board.class.php:10
getClass
getClass($module_name)
Definition:
func.inc.php:189
Generated on Tue Dec 18 2018 17:04:28 for XpressEngine Core by
1.8.5