XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
ModuleUpdateForm.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.ModuleUpdateForm.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['force'] =new XCube_BoolProperty('force');
32 }
33
34 public function load(&$obj)
35 {
36 $this->set('dirname', $obj->get('dirname'));
37 }
38
39 public function update(&$obj)
40 {
41 $obj->set('dirname', $this->get('dirname'));
42 }
43}
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.
Represents string property.