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
message
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
$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
message
high class of message module
Definition:
message.class.php:8
messageAdminModel
Definition:
message.admin.model.php:3
getModel
getModel($module_name)
Definition:
func.inc.php:145
Context\get
get($key)
Definition:
Context.class.php:1973
messageAdminModel\getMessageAdminColorset
getMessageAdminColorset()
Definition:
message.admin.model.php:4
Generated on Tue Dec 18 2018 17:04:29 for XpressEngine Core by
1.8.5