XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
TplsetDeleteForm.class.php
1<?php
6
7if (!defined('XOOPS_ROOT_PATH')) {
8 exit();
9}
10
11require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
12
13/***
14 * @internal
15 * This class is generated by makeActionForm tool.
16 */
18{
19 public function getTokenName()
20 {
21 return 'module.legacyRender.TplsetDeleteForm.TOKEN' . $this->get('tplset_id');
22 }
23
24 public function prepare()
25 {
26 //
27 // Set form properties
28 //
29 $this->mFormProperties['tplset_id'] =new XCube_IntProperty('tplset_id');
30
31 //
32 // Set field properties
33 //
34 $this->mFieldProperties['tplset_id'] =new XCube_FieldProperty($this);
35 $this->mFieldProperties['tplset_id']->setDependsByArray(['required']);
36 $this->mFieldProperties['tplset_id']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_TPLSET_ID);
37 }
38
39 public function load(&$obj)
40 {
41 $this->set('tplset_id', $obj->get('tplset_id'));
42 }
43
44 public function update(&$obj)
45 {
46 $obj->set('tplset_id', $this->get('tplset_id'));
47 }
48}
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.