Файл: upload/module/forum/include/component/block/stat.class.php
Строк: 32
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond_Benc
* @package Phpfox_Component
* @version $Id: stat.class.php 3342 2011-10-21 12:59:32Z Raymond_Benc $
*/
class Forum_Component_Block_Stat extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$this->template()->assign(array(
'sHeader' => Phpfox::getPhrase('forum.forum_statistics'),
'aStats' => Phpfox::getService('forum')->getStats()
)
);
return 'block';
}
/**
* 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_stat_clean')) ? eval($sPlugin) : false);
}
}
?>