XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
communication.admin.view.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  // Creating an object
27  $oEditorModel = getModel('editor');
28  $oModuleModel = getModel('module');
29  $oLayoutModel = getModel('layout');
30  $oCommunicationModel = getModel('communication');
31 
32  // get the configurations of communication module
33  Context::set('communication_config', $oCommunicationModel->getConfig());
34 
35  // get a list of layout
36  Context::set('layout_list', $oLayoutModel->getLayoutList());
37 
38  // get a list of editor skins
39  Context::set('editor_skin_list', $oEditorModel->getEditorSkinList());
40 
41  // get a list of communication skins
42  Context::set('communication_skin_list', $oModuleModel->getSkins($this->module_path));
43 
44  // get a list of communication skins
45  Context::set('communication_mobile_skin_list', $oModuleModel->getSkins($this->module_path, 'm.skins'));
46 
47  // Get a layout list
48  $layout_list = $oLayoutModel->getLayoutList();
49  Context::set('layout_list', $layout_list);
50 
51  $mlayout_list = $oLayoutModel->getLayoutList(0, 'M');
52  Context::set('mlayout_list', $mlayout_list);
53 
54  $security = new Security();
55  $security->encodeHTML('communication_config..');
56  $security->encodeHTML('layout_list..');
57  $security->encodeHTML('editor_skin_list..');
58  $security->encodeHTML('communication_skin_list..title');
59  $security->encodeHTML('communication_mobile_skin_list..title');
60 
61  $oMemberModel = getModel('member');
62  $group_list = $oMemberModel->getGroups($this->site_srl);
63  Context::set('group_list', $group_list);
64 
65  // specify a template
66  $this->setTemplatePath($this->module_path . 'tpl');
67  $this->setTemplateFile('index');
68  }
69 
70 }
71 /* End of file communication.admin.view.php */
72 /* Location: ./modules/comment/communication.admin.view.php */
setTemplateFile($filename)
$oModuleModel
Definition: ko.install.php:236
$args site_srl
Definition: ko.install.php:187
set($key, $val, $set_to_get_vars=0)
getModel($module_name)
Definition: func.inc.php:145