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
point
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
24
function
triggerDispPointAdditionSetup
(&
$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
$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
$oModuleModel
Definition:
ko.install.php:236
$obj
$obj
Definition:
ko.install.php:262
pointView\init
init()
Initialization.
Definition:
point.view.php:16
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
ModuleObject\$module_config
$module_config
Definition:
ModuleObject.class.php:26
pointView\triggerDispPointAdditionSetup
triggerDispPointAdditionSetup(&$obj)
Additional configurations for a service module Receive the form for the form used by point...
Definition:
point.view.php:24
point
The parent class of the point module.
Definition:
point.class.php:8
pointView
The view class of the point module.
Definition:
point.view.php:11
getModel
getModel($module_name)
Definition:
func.inc.php:145
Context\get
get($key)
Definition:
Context.class.php:1973
Generated on Tue Dec 18 2018 17:04:29 for XpressEngine Core by
1.8.5