-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultidomain.admin.model.php
More file actions
48 lines (41 loc) · 1.32 KB
/
multidomain.admin.model.php
File metadata and controls
48 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* multidomainAdminModel class
* multidomain model class of multidomain module
* @author largeden (developer@romanesque.me)
* @package /modules/multidomain
* @version 1.4.1
*/
class multidomainAdminModel extends multidomain
{
/**
* 멀티 도메인 리스트(관리자용)
* @param array $args
* @param array $columnList
* @return object
*/
function getMultidomainList($args = null, $columnList = array())
{
// cache를 불러옵니다.
if($cache = $this->getMultidomainCache('object_getMultidomainList', $args, 'group'))
{
return $cache;
}
$oModuleModel = &getModel('module');
$output = executeQuery('multidomain.getMultidomainList', $args, $columnList);
if(!$output->toBool()||!$output->data) return;
if(!is_array($output->data)) $output->data = array($output->data);
foreach($output->data as $key => $val)
{
$output->data[$key] = $val;
$module_info = $oModuleModel->getModuleInfoByModuleSrl($val->module_srl);
$output->data[$key]->browser_title = $module_info->browser_title;
$output->data[$key]->mid = $module_info->mid;
}
// cache를 저장합니다.
$this->setMultidomainCache('object_getMultidomainList', $args, $output, 'group');
return $output;
}
}
/* End of file multidomain.admin.model.php */
/* Location: ./modules/multidomain/multidomain.admin.model.php */