XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
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
Definition: ko.install.php:236
set($key, $val, $set_to_get_vars=0)
getBoardAdminSimpleSetup($moduleSrl, $setupUrl)
$oDocumentModel
Definition: ko.install.php:259
getLang($code)
$moduleInfo
Definition: ko.install.php:253
getModel($module_name)
Definition: func.inc.php:145
$order_target
Definition: board.class.php:14
board module high class
Definition: board.class.php:10
getClass($module_name)
Definition: func.inc.php:189