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