Файл: upload/module/pages/include/component/block/profile.class.php
Строк: 34
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond_Benc
* @package Phpfox_Component
* @version $Id: profile.class.php 3144 2011-09-20 20:39:58Z Raymond_Benc $
*/
class Pages_Component_Block_Profile extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$aUser = $this->getParam('aUser');
$aPages = Phpfox::getService('pages')->getForProfile($aUser['user_id']);
if (!count($aPages))
{
return false;
}
$this->template()->assign(array(
'sHeader' => Phpfox::getPhrase('pages.pages'),
'aPages' => $aPages
)
);
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('pages.component_block_profile_clean')) ? eval($sPlugin) : false);
}
}
?>