Minahito
minah****@users*****
2006年 4月 7日 (金) 13:47:24 JST
Index: xoops2jp/html/modules/base/admin/forms/CustomBlockDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.1 --- /dev/null Fri Apr 7 13:47:24 2006 +++ xoops2jp/html/modules/base/admin/forms/CustomBlockDeleteForm.class.php Fri Apr 7 13:47:24 2006 @@ -0,0 +1,41 @@ +<?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 Legacy_CustomBlockDeleteForm extends XCube_ActionForm +{ + function getTokenName() + { + return "module.base.CustomBlockDeleteForm.TOKEN" . $this->get('bid'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['bid'] =& new XCube_IntProperty('bid'); + + // + // Set field properties + // + + $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bid']->setDependsByArray(array('required')); + $this->mFieldProperties['bid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); + } + + function load(&$obj) + { + $this->set('bid', $obj->get('bid')); + } + + function update(&$obj) + { + } +} + +?>