XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
DataDeleteForm.class.php
1<?php
10
11if (!defined('XOOPS_ROOT_PATH')) {
12 exit();
13}
14
15require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
16require_once XOOPS_MODULE_PATH . '/legacy/class/Legacy_Validator.class.php';
17
19{
23 public function getTokenName()
24 {
25 return 'module.profile.DataDeleteForm.TOKEN';
26 }
27
31 public function prepare()
32 {
33 //
34 // Set form properties
35 //
36 $this->mFormProperties['uid'] =new XCube_IntProperty('uid');
37
38 //
39 // Set field properties
40 //
41 $this->mFieldProperties['uid'] =new XCube_FieldProperty($this);
42 $this->mFieldProperties['uid']->setDependsByArray(['required']);
43 $this->mFieldProperties['uid']->addMessage('required', _MD_PROFILE_ERROR_REQUIRED, _MD_PROFILE_LANG_UID);
44 }
45
50 public function load(&$obj)
51 {
52 $this->set('uid', $obj->get('uid'));
53 }
54
59 public function update(&$obj)
60 {
61 $obj->set('uid', $this->get('uid'));
62 }
63}
getTokenName()
Gets the token name of this actionform's token.
prepare()
[Abstract] Set up form properties and field properties.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents int property.