XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
LostPassEditForm.class.php
1
<?php
7
8
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
9
exit();
10
}
11
12
require_once XOOPS_ROOT_PATH .
'/core/XCube_ActionForm.class.php'
;
13
14
class
User_LostPassEditForm
extends
XCube_ActionForm
15
{
16
public
function
getTokenName
()
17
{
18
return
'module.user.LostPassEditForm.TOKEN'
;
19
}
20
21
public
function
prepare
()
22
{
23
//
24
// Set form properties
25
//
26
$this->mFormProperties[
'email'
] =
new
XCube_StringProperty
(
'email'
);
27
$this->mFormProperties[
'code'
] =
new
XCube_StringProperty
(
'code'
);
28
29
//
30
// Set field properties
31
//
32
$this->mFieldProperties[
'email'
] =
new
XCube_FieldProperty
($this);
33
$this->mFieldProperties[
'email'
]->setDependsByArray([
'required'
,
'email'
]);
34
$this->mFieldProperties[
'email'
]->addMessage(
'required'
, _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL);
35
$this->mFieldProperties[
'email'
]->addMessage(
'email'
, _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL);
36
}
37
}
User_LostPassEditForm
Definition
LostPassEditForm.class.php:15
User_LostPassEditForm\getTokenName
getTokenName()
Gets the token name of this actionform's token.
Definition
LostPassEditForm.class.php:16
User_LostPassEditForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
LostPassEditForm.class.php:21
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_StringProperty
Represents string property.
Definition
XCube_Property.class.php:506
html
modules
user
forms
LostPassEditForm.class.php
Generated by
1.13.2