XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
SmilesAdminDeleteForm.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.SmilesAdminDeleteForm.TOKEN' . $this->get('id');
23 }
24
25 public function prepare()
26 {
27 //
28 // Set form properties
29 //
30 $this->mFormProperties['id'] =new XCube_IntProperty('id');
31
32 //
33 // Set field properties
34 //
35 $this->mFieldProperties['id'] =new XCube_FieldProperty($this);
36 $this->mFieldProperties['id']->setDependsByArray(['required']);
37 $this->mFieldProperties['id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_ID);
38 }
39
40 public function load(&$obj)
41 {
42 $this->set('id', $obj->get('id'));
43 }
44
45 public function update(&$obj)
46 {
47 $obj->set('id', $this->get('id'));
48 }
49}
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.