<?php
/**
 * [PHPFOX_HEADER]
 */

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

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox_Component
 * @version 		$Id: translate-child-country.class.php 1329 2009-12-16 17:01:32Z Raymond_Benc $
 */
class Core_Component_Block_Translate_Child_Country extends Phpfox_Component
{
	/**
	 * Controller
	 */
	public function process()
	{
		$this->template()->assign(array(
				'sChildId' => $this->request()->get('child_id'),
				'sChildVarName' => 'core.translate_country_child_' . strtolower($this->request()->get('child_id')),
				'sCountryName' => Core_Service_Country_Country::instance()->getChild($this->request()->get('child_id'))
			)
		);			
	}
	
	/**
	 * 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_translate_child_country_clean')) ? eval($sPlugin) : false);
	}
}