XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
CustomBlockDeleteForm.class.php
1<?php
11
12
13if (!defined('XOOPS_ROOT_PATH')) {
14 exit();
15}
16
17require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
18require_once XOOPS_MODULE_PATH . '/legacy/class/Legacy_Validator.class.php';
19
21{
22 public function getTokenName()
23 {
24 return 'module.legacy.CustomBlockDeleteForm.TOKEN' . $this->get('bid');
25 }
26
27 public function prepare()
28 {
29 //
30 // Set form properties
31 //
32 $this->mFormProperties['bid'] =new XCube_IntProperty('bid');
33
34 //
35 // Set field properties
36 //
37 $this->mFieldProperties['bid'] =new XCube_FieldProperty($this);
38 $this->mFieldProperties['bid']->setDependsByArray(['required']);
39 $this->mFieldProperties['bid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BID);
40 }
41
42 public function load(&$obj)
43 {
44 $this->set('bid', $obj->get('bid'));
45 }
46
47 public function update(&$obj)
48 {
49 }
50}
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.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents int property.