XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
InstallWizardForm.class.php
1<?php
11
12if (!defined('XOOPS_ROOT_PATH')) {
13 exit();
14}
15
16require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
17
19{
20 public function getTokenName()
21 {
22 return 'module.legacy.InstallWizardForm.TOKEN.' . $this->get('dirname');
23 }
24
25 public function prepare()
26 {
27 //
28 // Set form properties
29 //
30 $this->mFormProperties['dirname'] =new XCube_StringProperty('dirname');
31 $this->mFormProperties['agree'] =new XCube_BoolProperty('agree');
32
33 //
34 // Set field properties
35 //
36 $this->mFieldProperties['agree'] =new XCube_FieldProperty($this);
37 $this->mFieldProperties['agree']->setDependsByArray(['min']);
38 $this->mFieldProperties['agree']->addMessage('min', _AD_LEGACY_ERROR_PLEASE_AGREE);
39 $this->mFieldProperties['agree']->addVar('min', '1');
40 }
41
42 public function load(&$obj)
43 {
44 $this->set('dirname', $obj->get('dirname'));
45 }
46
47 public function update(&$obj)
48 {
49 $obj->set('dirname', $this->get('dirname'));
50 }
51}
update(&$obj)
[Abstract] Updates an object with properties values.
getTokenName()
Gets the token name of this actionform's token.
prepare()
[Abstract] Set up form properties and field properties.
load(&$obj)
[Abstract] Initializes properties' values from an object.
Represents bool property.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents string property.