<?php
/**
 * @package legacyRender
 * @version $Id: BannerclientAdminDeleteForm.class.php,v 1.1.2.2.2.3 2006/10/14 16:45:52 minahito Exp $
 */

if (!defined('XOOPS_ROOT_PATH')) exit();

require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php";

class LegacyRender_BannerclientAdminDeleteForm extends XCube_ActionForm
{
	function getTokenName()
	{
		return "module.legacyRender.BannerclientAdminDeleteForm.TOKEN" . $this->get('cid');
	}

	function prepare()
	{
		//
		// Set form properties
		//
		$this->mFormProperties['cid'] =& new XCube_IntProperty('cid');
	
		//
		// Set field properties
		//
		$this->mFieldProperties['cid'] =& new XCube_FieldProperty($this);
		$this->mFieldProperties['cid']->setDependsByArray(array('required'));
		$this->mFieldProperties['cid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_CID);
	}

	function load(&$obj)
	{
		$this->set('cid', $obj->get('cid'));
	}

	function update(&$obj)
	{
		$obj->set('cid', $this->get('cid'));
	}
}

?>
