<?php
/**
 * @package user
 * @version $Id: AvatarAdminDeleteForm.class.php,v 1.1.2.5 2006/08/17 10:21:05 minahito Exp $
 */

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

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

/**
 * This class is generated by makeActionForm tool.
 */
class User_AvatarAdminDeleteForm extends XCube_ActionForm
{
	function getTokenName()
	{
		return "module.user.AvatarAdminDeleteForm.TOKEN" . $this->get('avatar_id');
	}

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

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

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

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

?>
