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
file
file.view.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
7
class
fileView
extends
file
8
{
13
function
init
()
14
{
15
}
16
24
function
triggerDispFileAdditionSetup
(&
$obj
)
25
{
26
$current_module_srl =
Context::get
(
'module_srl'
);
27
$current_module_srls =
Context::get
(
'module_srls'
);
28
29
if
(!$current_module_srl && !$current_module_srls)
30
{
31
// Get information of the current module
32
$current_module_info =
Context::get
(
'current_module_info'
);
33
$current_module_srl = $current_module_info->module_srl;
34
if
(!$current_module_srl)
return
new
BaseObject
();
35
}
36
// Get file configurations of the module
37
$oFileModel =
getModel
(
'file'
);
38
$file_config = $oFileModel->getFileModuleConfig($current_module_srl);
39
Context::set
(
'file_config'
, $file_config);
40
// Get a permission for group setting
41
$oMemberModel =
getModel
(
'member'
);
42
$site_module_info =
Context::get
(
'site_module_info'
);
43
$group_list = $oMemberModel->getGroups($site_module_info->site_srl);
44
Context::set
(
'group_list'
, $group_list);
45
// Set a template file
46
$oTemplate = &
TemplateHandler::getInstance
();
47
$tpl = $oTemplate->compile($this->module_path.
'tpl'
,
'file_module_config'
);
48
$obj
.= $tpl;
49
50
return
new
BaseObject
();
51
}
52
}
53
/* End of file file.view.php */
54
/* Location: ./modules/file/file.view.php */
file
Definition:
file.class.php:7
$obj
$obj
Definition:
ko.install.php:262
TemplateHandler\getInstance
static & getInstance()
Definition:
TemplateHandler.class.php:60
BaseObject
Definition:
BaseObject.class.php:9
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
fileView
Definition:
file.view.php:7
fileView\triggerDispFileAdditionSetup
triggerDispFileAdditionSetup(&$obj)
Definition:
file.view.php:24
getModel
getModel($module_name)
Definition:
func.inc.php:145
Context\get
get($key)
Definition:
Context.class.php:1973
fileView\init
init()
Definition:
file.view.php:13
Generated on Tue Dec 18 2018 17:04:28 for XpressEngine Core by
1.8.5