View file PF.Base/module/admincp/include/component/block/product/form.class.php

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

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

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox_Component
 * @version 		$Id: form.class.php 798 2009-07-23 20:07:08Z Raymond_Benc $
 */
class Admincp_Component_Block_Product_Form extends Phpfox_Component
{
	/**
	 * Controller
	 */
	public function process()
	{
		$this->template()->assign(array(
				'aProducts' => Admincp_Service_Product_Product::instance()->get(),
				'bUseClass' => $this->getParam('class'),
				'bProductIsRequired' => $this->getParam('product_form_required', true)
			)
		);
	}
	
	/**
	 * 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('admincp.component_block_product_form_clean')) ? eval($sPlugin) : false);
	}
}