<?php
/**
 * @package Legacy
 * @version $Id: CommentAdminDeleteForm.class.php,v 1.1.2.3 2006/08/01 10:38:57 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 Legacy_CommentAdminDeleteForm extends XCube_ActionForm
{
	function getTokenName()
	{
		return "module.base.XoopscommentsAdminDeleteForm.TOKEN" . $this->get('com_id');
	}

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

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

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

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

?>
