XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
SmilesAdminDeleteForm.class.php
1
<?php
11
12
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
13
exit();
14
}
15
16
require_once XOOPS_ROOT_PATH .
'/core/XCube_ActionForm.class.php'
;
17
18
class
Legacy_SmilesAdminDeleteForm
extends
XCube_ActionForm
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
}
Legacy_SmilesAdminDeleteForm
Definition
SmilesAdminDeleteForm.class.php:19
Legacy_SmilesAdminDeleteForm\update
update(&$obj)
[Abstract] Updates an object with properties values.
Definition
SmilesAdminDeleteForm.class.php:45
Legacy_SmilesAdminDeleteForm\getTokenName
getTokenName()
Gets the token name of this actionform's token.
Definition
SmilesAdminDeleteForm.class.php:20
Legacy_SmilesAdminDeleteForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
SmilesAdminDeleteForm.class.php:25
Legacy_SmilesAdminDeleteForm\load
load(&$obj)
[Abstract] Initializes properties' values from an object.
Definition
SmilesAdminDeleteForm.class.php:40
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
legacy
admin
forms
SmilesAdminDeleteForm.class.php
Generated by
1.13.2