XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
RanksAdminDeleteForm.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_RanksAdminDeleteForm
extends
XCube_ActionForm
15
{
16
public
function
getTokenName
()
17
{
18
return
'module.user.RanksAdminDeleteForm.TOKEN'
. $this->
get
(
'rank_id'
);
19
}
20
21
public
function
prepare
()
22
{
23
//
24
// Set form properties
25
//
26
$this->mFormProperties[
'rank_id'
] =
new
XCube_IntProperty
(
'rank_id'
);
27
28
//
29
// Set field properties
30
//
31
$this->mFieldProperties[
'rank_id'
] =
new
XCube_FieldProperty
($this);
32
$this->mFieldProperties[
'rank_id'
]->setDependsByArray([
'required'
]);
33
$this->mFieldProperties[
'rank_id'
]->addMessage(
'required'
, _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_RANK_ID);
34
}
35
36
public
function
load
(&$obj)
37
{
38
$this->
set
(
'rank_id'
, $obj->get(
'rank_id'
));
39
}
40
41
public
function
update
(&$obj)
42
{
43
$obj->setVar(
'rank_id'
, $this->
get
(
'rank_id'
));
44
}
45
}
User_RanksAdminDeleteForm
Definition
RanksAdminDeleteForm.class.php:15
User_RanksAdminDeleteForm\update
update(&$obj)
[Abstract] Updates an object with properties values.
Definition
RanksAdminDeleteForm.class.php:41
User_RanksAdminDeleteForm\getTokenName
getTokenName()
Gets the token name of this actionform's token.
Definition
RanksAdminDeleteForm.class.php:16
User_RanksAdminDeleteForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
RanksAdminDeleteForm.class.php:21
User_RanksAdminDeleteForm\load
load(&$obj)
[Abstract] Initializes properties' values from an object.
Definition
RanksAdminDeleteForm.class.php:36
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
user
admin
forms
RanksAdminDeleteForm.class.php
Generated by
1.13.2