<?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 RanksAdminDeleteForm extends XCube_ActionForm
{
	function getTokenName()
	{
		return "module.user.RanksAdminDeleteForm.TOKEN";
	}

	function prepare()
	{
		//
		// Set form properties
		//
		$this->mFormProperties['rank_id'] =& new XCube_IntProperty('rank_id');

		//
		// Set field properties
		//
		$this->mFieldProperties['rank_id'] =& new XCube_FieldProperty($this);
		$this->mFieldProperties['rank_id']->setDependsByArray(array('required'));
		$this->mFieldProperties['rank_id']->addMessage('required', _AD_USER_ERROR_REQUIRED, _AD_USER_LANG_RANK_ID);
	}

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

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

?>
