Minahito
minah****@users*****
2006年 2月 2日 (木) 21:01:40 JST
Index: xoops2jp/html/modules/base/admin/forms/ModuleUpdateForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/ModuleUpdateForm.class.php:1.1.2.1 --- /dev/null Thu Feb 2 21:01:40 2006 +++ xoops2jp/html/modules/base/admin/forms/ModuleUpdateForm.class.php Thu Feb 2 21:01:40 2006 @@ -0,0 +1,37 @@ +<?php + +require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php"; + +class Legacy_ModuleUpdateForm extends XCube_ActionForm +{ + function getTokenName() + { + return "module.legacy.ModuleUpdateForm.TOKEN." . $this->get('dirname'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname'); + $this->mFormProperties['agree'] =& new XCube_BoolProperty('agree'); + $this->mFormProperties['force'] =& new XCube_BoolProperty('force'); + + // + // Set field properties + // + } + + function load(&$obj) + { + $this->set('dirname', $obj->get('dirname')); + } + + function update(&$obj) + { + $obj->set('dirname', $this->get('dirname')); + } +} + +?>