Файл: upload/module/forum/include/component/block/merge.class.php
Строк: 33
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox_Component
* @version $Id: block.class.php 103 2009-01-27 11:32:36Z Raymond_Benc $
*/
class Forum_Component_Block_Merge extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$aThread = Phpfox::getService('forum.thread')->getActualThread($this->request()->get('thread_id'));
if (!isset($aThread['thread_id']))
{
return Phpfox_Error::display(Phpfox::getPhrase('forum.not_a_valid_thread_to_move'));
}
$bIsGroup = ($aThread['group_id'] > 0 ? true : false);
$this->template()->assign(array(
'aThread' => $aThread,
'sForums' => ($bIsGroup ? '' : Phpfox::getService('forum')->active($aThread['forum_id'])->getJumpTool(true)),
'bIsGroup' => $bIsGroup
)
);
}
/**
* Garbage collector. Is executed after this class has completed
* its job and the template has also been displayed.
*/
public function clean()
{
(($sPlugin = Phpfox_Plugin::get('forum.component_block_merge_clean')) ? eval($sPlugin) : false);
}
}
?>