issue 2119. supporting php 5.4. comment module.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12720 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2013-02-07 07:32:21 +00:00
parent c15c87c0bf
commit e2affff988
7 changed files with 1403 additions and 568 deletions

View file

@ -1,4 +1,5 @@
<?php
/**
* commentView class
* comment module's view class
@ -9,12 +10,14 @@
*/
class commentView extends comment
{
/**
* Initialization
* @return void
*/
function init()
{
}
/**
@ -32,23 +35,30 @@ class commentView extends comment
// get information of the selected module
$current_module_info = Context::get('current_module_info');
$current_module_srl = $current_module_info->module_srl;
if(!$current_module_srl) return new Object();
if(!$current_module_srl)
{
return new Object();
}
}
// get the comment configuration
$oCommentModel = &getModel('comment');
$oCommentModel = getModel('comment');
$comment_config = $oCommentModel->getCommentConfig($current_module_srl);
Context::set('comment_config', $comment_config);
// get a group list
$oMemberModel = &getModel('member');
$oMemberModel = getModel('member');
$group_list = $oMemberModel->getGroups();
Context::set('group_list', $group_list);
// Set a template file
$oTemplate = &TemplateHandler::getInstance();
$tpl = $oTemplate->compile($this->module_path.'tpl', 'comment_module_config');
$oTemplate = TemplateHandler::getInstance();
$tpl = $oTemplate->compile($this->module_path . 'tpl', 'comment_module_config');
$obj .= $tpl;
return new Object();
}
}
/* End of file comment.view.php */
/* Location: ./modules/comment/comment.view.php */