XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
DataDeleteForm.class.php
1
<?php
10
11
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
12
exit();
13
}
14
15
require_once XOOPS_ROOT_PATH .
'/core/XCube_ActionForm.class.php'
;
16
require_once XOOPS_MODULE_PATH .
'/legacy/class/Legacy_Validator.class.php'
;
17
18
class
Profile_DataDeleteForm
extends
XCube_ActionForm
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
}
Profile_DataDeleteForm
Definition
DataDeleteForm.class.php:19
Profile_DataDeleteForm\update
update(&$obj)
Definition
DataDeleteForm.class.php:59
Profile_DataDeleteForm\getTokenName
getTokenName()
Gets the token name of this actionform's token.
Definition
DataDeleteForm.class.php:23
Profile_DataDeleteForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
DataDeleteForm.class.php:31
Profile_DataDeleteForm\load
load(&$obj)
Definition
DataDeleteForm.class.php:50
XCube_ActionForm
Definition
XCube_ActionForm.class.php:51
XCube_FieldProperty
[Abstract] Used for validating member property values of XCube_ActionForm.
Definition
XCube_ActionForm.class.php:438
XCube_IntProperty
Represents int property.
Definition
XCube_Property.class.php:461
html
modules
profile
forms
DataDeleteForm.class.php
Generated by
1.13.2