XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
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 
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 */
$obj
Definition: ko.install.php:262
set($key, $val, $set_to_get_vars=0)
triggerDispFileAdditionSetup(&$obj)
Definition: file.view.php:24
getModel($module_name)
Definition: func.inc.php:145