Файл: upload/module/core/include/component/block/twitter.class.php
Строк: 37
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox_Component
* @version $Id: twitter.class.php 982 2009-09-16 08:11:36Z Raymond_Benc $
*/
class Core_Component_Block_Twitter extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$aTweets = Phpfox::getService('core.admincp')->getTweets();
if ($aTweets === false)
{
return false;
}
if (!Phpfox::getUserParam('core.can_view_twitter_updates'))
{
return false;
}
$this->template()->assign(array(
'sHeader' => Phpfox::getPhrase('admincp.phpfox_tweets'),
'aPhpfoxTweets' => $aTweets
)
);
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('core.component_block_twitter_clean')) ? eval($sPlugin) : false);
}
}
?>