<?php
/**
 * @package legacyRender
 * @version $Id: TplsetSelectForm.class.php,v 1.1.2.3.2.2 2006/09/29 08:14:33 minahito Exp $
 */

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

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

/**
 * This class is generated by makeActionForm tool.
 */
class LegacyRender_TplsetSelectForm extends XCube_ActionForm
{
	function getTokenName()
	{
		return "module.legacyRender.TemplatesetSelectForm.TOKEN";
	}

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

	function validateTplset_name()
	{
		$handler =& xoops_getmodulehandler('tplset');
		if ($handler->getCount(new Criteria('tplset_name', $this->get('tplset_name'))) == 0) {
			$this->addErrorMessage(_AD_LEGACYRENDER_ERROR_TPLSET_NO_EXIST);
		}
	}
}

?>
