XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
message.admin.model.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 class messageAdminModel extends message{
4  public function getMessageAdminColorset()
5  {
6  $skin = Context::get('skin');
7  $type = Context::get('type') == 'M' ? 'M' : 'P';
8  Context::set('type', $type);
9  $dir = $type == 'P' ? 'skins' : 'm.skins';
10 
11  if(!$skin)
12  {
13  $tpl = '';
14  }
15  else
16  {
17  $oModuleModel = getModel('module'); /* @var $oModuleModel moduleModel */
18  $skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin, $dir);
19  Context::set('skin_info', $skin_info);
20 
21  $config = $oModuleModel->getModuleConfig('message');
22  Context::set('config', $config);
23 
24  $oTemplate = TemplateHandler::getInstance();
25  $tpl = $oTemplate->compile($this->module_path.'tpl', 'colorset_list');
26  }
27 
28  $this->add('tpl', $tpl);
29  }
30 }
$oModuleModel
Definition: ko.install.php:236
add($key, $val)
set($key, $val, $set_to_get_vars=0)
high class of message module
getModel($module_name)
Definition: func.inc.php:145