1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10:
11: if (!defined('XOOPS_ROOT_PATH')) exit();
12:
13: require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
14:
15: class Legacy_InstallWizardForm extends XCube_ActionForm
16: {
17: function getTokenName()
18: {
19: return "module.legacy.InstallWizardForm.TOKEN." . $this->get('dirname');
20: }
21:
22: function prepare()
23: {
24:
25:
26:
27: $this->mFormProperties['dirname'] =new XCube_StringProperty('dirname');
28: $this->mFormProperties['agree'] =new XCube_BoolProperty('agree');
29:
30:
31:
32:
33: $this->mFieldProperties['agree'] =new XCube_FieldProperty($this);
34: $this->mFieldProperties['agree']->setDependsByArray(array('min'));
35: $this->mFieldProperties['agree']->addMessage('min', _AD_LEGACY_ERROR_PLEASE_AGREE);
36: $this->mFieldProperties['agree']->addVar('min', '1');
37: }
38:
39: function load(&$obj)
40: {
41: $this->set('dirname', $obj->get('dirname'));
42: }
43:
44: function update(&$obj)
45: {
46: $obj->set('dirname', $this->get('dirname'));
47: }
48: }
49:
50: ?>
51: