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