XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
point.view.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
11 class pointView extends point
12 {
16  function init()
17  {
18  }
19 
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  $current_module_info = Context::get('current_module_info');
32  $current_module_srl = $current_module_info->module_srl;
33  if(!$current_module_srl) return new BaseObject();
34  }
35  // Get the configuration information
36  $oModuleModel = getModel('module');
37  $config = $oModuleModel->getModuleConfig('point');
38 
39  if($current_module_srl)
40  {
41  $module_config = $oModuleModel->getModulePartConfig('point', $current_module_srl);
42  if(!$module_config)
43  {
44  $module_config['insert_document'] = $config->insert_document;
45  $module_config['insert_comment'] = $config->insert_comment;
46  $module_config['upload_file'] = $config->upload_file;
47  $module_config['download_file'] = $config->download_file;
48  $module_config['read_document'] = $config->read_document;
49  $module_config['voted'] = $config->voted;
50  $module_config['blamed'] = $config->blamed;
51  }
52  }
53 
54  $module_config['module_srl'] = $current_module_srl;
55  $module_config['point_name'] = $config->point_name;
56  Context::set('module_config', $module_config);
57  // Set the template file
58  $oTemplate = &TemplateHandler::getInstance();
59  $tpl = $oTemplate->compile($this->module_path.'tpl', 'point_module_config');
60  $obj .= $tpl;
61 
62  return new BaseObject();
63  }
64 }
65 /* End of file point.view.php */
66 /* Location: ./modules/point/point.view.php */
$oModuleModel
Definition: ko.install.php:236
$obj
Definition: ko.install.php:262
init()
Initialization.
Definition: point.view.php:16
set($key, $val, $set_to_get_vars=0)
triggerDispPointAdditionSetup(&$obj)
Additional configurations for a service module Receive the form for the form used by point...
Definition: point.view.php:24
The parent class of the point module.
Definition: point.class.php:8
The view class of the point module.
Definition: point.view.php:11
getModel($module_name)
Definition: func.inc.php:145