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.model.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
9
class
communicationAdminModel
extends
communication
10
{
11
15
function
init
()
16
{
17
18
}
19
24
function
getCommunicationAdminColorset
()
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
$oModuleModel
Definition:
ko.install.php:236
BaseObject\add
add($key, $val)
Definition:
BaseObject.class.php:128
TemplateHandler\getInstance
static & getInstance()
Definition:
TemplateHandler.class.php:60
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
communicationAdminModel
communication module of the admin model class
Definition:
communication.admin.model.php:9
communication
Definition:
communication.class.php:9
communicationAdminModel\init
init()
Definition:
communication.admin.model.php:15
Security
Definition:
Security.class.php:11
getModel
getModel($module_name)
Definition:
func.inc.php:145
Context\get
get($key)
Definition:
Context.class.php:1973
communicationAdminModel\getCommunicationAdminColorset
getCommunicationAdminColorset()
Definition:
communication.admin.model.php:24
Generated on Tue Dec 18 2018 17:04:28 for XpressEngine Core by
1.8.5