Файл: upload/module/feed/include/component/block/like-list.class.php
Строк: 34
<?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 Feed_Component_Block_Like_List extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$aLikes = Phpfox::getService('feed')->getLikes($this->request()->get('feed_id'));
if (!count($aLikes))
{
return Phpfox_Error::set(Phpfox::getPhrase('feed.nobody_likes_this'));
}
$this->template()->assign(array(
'aLikes' => $aLikes
)
);
}
/**
* 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('feed.component_block_like_list_clean')) ? eval($sPlugin) : false);
}
}
?>