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
communication
communication.admin.view.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
9
class
communicationAdminView
extends
communication
10
{
11
15
function
init
()
16
{
17
18
}
19
24
function
dispCommunicationAdminConfig
()
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 */
ModuleObject\setTemplateFile
setTemplateFile($filename)
Definition:
ModuleObject.class.php:252
$oModuleModel
$oModuleModel
Definition:
ko.install.php:236
site_srl
$args site_srl
Definition:
ko.install.php:187
communicationAdminView
Definition:
communication.admin.view.php:9
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
communicationAdminView\dispCommunicationAdminConfig
dispCommunicationAdminConfig()
Definition:
communication.admin.view.php:24
communication
Definition:
communication.class.php:9
Security
Definition:
Security.class.php:11
getModel
getModel($module_name)
Definition:
func.inc.php:145
communicationAdminView\init
init()
Definition:
communication.admin.view.php:15
ModuleObject\setTemplatePath
setTemplatePath($path)
Definition:
ModuleObject.class.php:275
Generated on Tue Dec 18 2018 17:04:28 for XpressEngine Core by
1.8.5