View file PF.Base/module/core/include/component/block/template-footer.class.php

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

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

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond_Benc
 * @package 		Phpfox_Component
 * @version 		$Id: template-footer.class.php 2817 2011-08-08 16:59:43Z Raymond_Benc $
 */
class Core_Component_Block_Template_Footer extends Phpfox_Component
{
	/**
	 * Controller
	 */
	public function process()
	{		
		define('PHPFOX_MEM_END', memory_get_usage());

		$this->template()->assign(array(
				'sDebugInfo' => (PHPFOX_DEBUG ? Phpfox_Debug::getDetails() : '')
			)
		);		
	}
	
	/**
	 * 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_template-footer_clean')) ? eval($sPlugin) : false);
	}
}