View file PF.Base/module/blog/include/component/controller/profile.class.php

File size: 1.09Kb
<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * Profile
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Blog
 * @version 		$Id: profile.class.php 2255 2011-01-11 19:07:32Z Raymond_Benc $
 */
class Blog_Component_Controller_Profile extends Phpfox_Component
{
	/**
	 * Controller
	 */
	public function process()
	{		
		$this->setParam('bIsProfile', true);
		
		$aUser = $this->getParam('aUser');
		
		$this->template()->setMeta('keywords', _p('full_name_s_blogs', array('full_name' => $aUser['full_name'])));
		$this->template()->setMeta('description', _p('full_name_s_blogs_on_site_title', array('full_name' => $aUser['full_name'], 'site_title' => Phpfox::getParam('core.site_title'))));
		
		Phpfox::getComponent('blog.index', array('bNoTemplate' => true), 'controller');
	}
	
	/**
	 * 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('blog.component_controller_profile_clean')) ? eval($sPlugin) : false);
	}
}