Minahito
minah****@users*****
2006年 5月 17日 (水) 16:27:04 JST
Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileAdminDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/forms/TplfileAdminDeleteForm.class.php:1.1.2.1 --- /dev/null Wed May 17 16:27:04 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileAdminDeleteForm.class.php Wed May 17 16:27:04 2006 @@ -0,0 +1,42 @@ +<?php + +if (!defined('XOOPS_ROOT_PATH')) exit(); + +require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php"; +require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; + +class LegacyRender_TplfileAdminDeleteForm extends XCube_ActionForm +{ + function getTokenName() + { + return "module.legacyRender.TplfileAdminDeleteForm.TOKEN"; + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['tpl_id'] =& new XCube_IntProperty('tpl_id'); + + // + // Set field properties + // + + $this->mFieldProperties['tpl_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['tpl_id']->setDependsByArray(array('required')); + $this->mFieldProperties['tpl_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPL_ID); + } + + function load(&$obj) + { + $this->set('tpl_id', $obj->get('tpl_id')); + } + + function update(&$obj) + { + $obj->set('tpl_id', $this->get('tpl_id')); + } +} + +?>