View file PF.Base/module/friend/include/component/controller/suggestion.class.php

File size: 968B
<?php
/**
 * [PHPFOX_HEADER]
 */

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

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox_Component
 * @version 		$Id: suggestion.class.php 1418 2010-01-21 18:38:10Z Raymond_Benc $
 */
class Friend_Component_Controller_Suggestion extends Phpfox_Component
{
	/**
	 * Controller
	 */
	public function process()
	{
		Phpfox::isUser(true);

		$this->template()->setTitle(_p('friend_suggestions'))
			->setBreadCrumb(_p('my_friends'), $this->url()->makeUrl('friend'))
			->setBreadCrumb(_p('suggestions'), null, true)
			->assign(array(
					'aSuggestions' => Friend_Service_Suggestion::instance()->get()
				)
			);	
	}
	
	/**
	 * 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('friend.component_controller_suggestion_clean')) ? eval($sPlugin) : false);
	}
}