<?php

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

require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php";

/**
 * This class is generated by makeActionForm tool.
 */
class TplsetDeleteForm extends XCube_ActionForm
{
	function prepare()
	{
		//
		// Set form properties
		//
		$this->mFormProperties['tplset_id'] =& new XCube_IntProperty('tplset_id');

		//
		// Set field properties
		//
		$this->mFieldProperties['tplset_id'] =& new XCube_FieldProperty($this);
		$this->mFieldProperties['tplset_id']->setDependsByArray(array('required'));
		$this->mFieldProperties['tplset_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_ID);
	}
	function getTokenName()
	{
		return "module.legacyRender.TplsetDeleteForm.TOKEN";
	}

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

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

?>
