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
comment
comment.view.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
12
class
commentView
extends
comment
13
{
14
19
function
init
()
20
{
21
22
}
23
29
function
triggerDispCommentAdditionSetup
(&
$obj
)
30
{
31
$current_module_srl =
Context::get
(
'module_srl'
);
32
$current_module_srls =
Context::get
(
'module_srls'
);
33
34
if
(!$current_module_srl && !$current_module_srls)
35
{
36
// get information of the selected module
37
$current_module_info =
Context::get
(
'current_module_info'
);
38
$current_module_srl = $current_module_info->module_srl;
39
if
(!$current_module_srl)
40
{
41
return
new
BaseObject
();
42
}
43
}
44
45
// get the comment configuration
46
$oCommentModel =
getModel
(
'comment'
);
47
$comment_config = $oCommentModel->getCommentConfig($current_module_srl);
48
Context::set
(
'comment_config'
, $comment_config);
49
50
// get a group list
51
$oMemberModel =
getModel
(
'member'
);
52
$group_list = $oMemberModel->getGroups();
53
Context::set
(
'group_list'
, $group_list);
54
55
// Set a template file
56
$oTemplate =
TemplateHandler::getInstance
();
57
$tpl = $oTemplate->compile($this->module_path .
'tpl'
,
'comment_module_config'
);
58
$obj
.= $tpl;
59
60
return
new
BaseObject
();
61
}
62
63
}
64
/* End of file comment.view.php */
65
/* Location: ./modules/comment/comment.view.php */
$obj
$obj
Definition:
ko.install.php:262
TemplateHandler\getInstance
static & getInstance()
Definition:
TemplateHandler.class.php:60
commentView
Definition:
comment.view.php:12
BaseObject
Definition:
BaseObject.class.php:9
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
commentView\triggerDispCommentAdditionSetup
triggerDispCommentAdditionSetup(&$obj)
Definition:
comment.view.php:29
comment
Definition:
comment.class.php:14
commentView\init
init()
Definition:
comment.view.php:19
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:28 for XpressEngine Core by
1.8.5