Minahito
minah****@users*****
2006年 2月 2日 (木) 21:11:18 JST
Index: xoops2jp/html/modules/base/admin/forms/ModuleInstallForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/ModuleInstallForm.class.php:1.1.2.1 --- /dev/null Thu Feb 2 21:11:18 2006 +++ xoops2jp/html/modules/base/admin/forms/ModuleInstallForm.class.php Thu Feb 2 21:11:18 2006 @@ -0,0 +1,37 @@ +<?php + +require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php"; + +class Legacy_ModuleInstallForm extends XCube_ActionForm +{ + function getTokenName() + { + return "module.legacy.ModuleInstallForm.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')); + } +} + +?>