XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
communication.admin.model.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
10 {
11 
15  function init()
16  {
17 
18  }
19 
25  {
26  $skin = Context::get('skin');
27  $type = Context::get('type') == 'P' ? 'P' : 'M';
28  Context::set('type', $type);
29 
30  if($type == 'P')
31  {
32  $dir = 'skins';
33  }
34  else
35  {
36  $dir = 'm.skins';
37  }
38 
39  if(!$skin)
40  {
41  $tpl = "";
42  }
43  else
44  {
45  $oModuleModel = getModel('module');
46  $skin_info = $oModuleModel->loadSkinInfo($this->module_path, $skin, $dir);
47  Context::set('skin_info', $skin_info);
48 
49  $oModuleModel = getModel('module');
50  $communication_config = $oModuleModel->getModuleConfig('communication');
51  if(!is_object($communication_config)) $communication_config = new stdClass;
52  if(!$communication_config->colorset)
53  {
54  $communication_config->colorset = "white";
55  }
56  Context::set('communication_config', $communication_config);
57 
58  $security = new Security();
59  $security->encodeHTML('skin_info.colorset..title', 'skin_info.colorset..name');
60  $security->encodeHTML('skin_info.colorset..name');
61 
62  $oTemplate = TemplateHandler::getInstance();
63  $tpl = $oTemplate->compile($this->module_path . 'tpl', 'colorset_list');
64  }
65 
66  $this->add('tpl', $tpl);
67  $this->add('type', $type);
68  }
69 
70 }
71 /* End of file communication.admin.model.php */
72 /* Location: ./modules/comment/communication.admin.model.php */
$oModuleModel
Definition: ko.install.php:236
add($key, $val)
set($key, $val, $set_to_get_vars=0)
communication module of the admin model class
getModel($module_name)
Definition: func.inc.php:145