XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
CommentAdminDeleteForm.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
/***
19
* @internal
20
*/
21
class
Legacy_CommentAdminDeleteForm
extends
XCube_ActionForm
22
{
23
public
function
getTokenName
()
24
{
25
return
'module.legacy.XoopscommentsAdminDeleteForm.TOKEN'
. $this->
get
(
'com_id'
);
26
}
27
28
public
function
prepare
()
29
{
30
//
31
// Set form properties
32
//
33
$this->mFormProperties[
'com_id'
] =
new
XCube_IntProperty
(
'com_id'
);
34
$this->mFormProperties[
'delete_mode'
] =
new
XCube_StringProperty
(
'delete_mode'
);
35
36
//
37
// Set field properties
38
//
39
$this->mFieldProperties[
'com_id'
] =
new
XCube_FieldProperty
($this);
40
$this->mFieldProperties[
'com_id'
]->setDependsByArray([
'required'
]);
41
$this->mFieldProperties[
'com_id'
]->addMessage(
'required'
, _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_COM_ID);
42
}
43
44
public
function
load
(&$obj)
45
{
46
$this->
setVar
(
'com_id'
, $obj->get(
'com_id'
));
47
}
48
49
public
function
update
(&$obj)
50
{
51
$obj->setVar(
'com_id'
, $this->
get
(
'com_id'
));
52
}
53
}
Legacy_CommentAdminDeleteForm
Definition
CommentAdminDeleteForm.class.php:22
Legacy_CommentAdminDeleteForm\update
update(&$obj)
[Abstract] Updates an object with properties values.
Definition
CommentAdminDeleteForm.class.php:49
Legacy_CommentAdminDeleteForm\getTokenName
getTokenName()
Gets the token name of this actionform's token.
Definition
CommentAdminDeleteForm.class.php:23
Legacy_CommentAdminDeleteForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
CommentAdminDeleteForm.class.php:28
Legacy_CommentAdminDeleteForm\load
load(&$obj)
[Abstract] Initializes properties' values from an object.
Definition
CommentAdminDeleteForm.class.php:44
XCube_ActionForm
Definition
XCube_ActionForm.class.php:51
XCube_ActionForm\setVar
setVar()
Definition
XCube_ActionForm.class.php:199
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
XCube_StringProperty
Represents string property.
Definition
XCube_Property.class.php:506
html
modules
legacy
admin
forms
CommentAdminDeleteForm.class.php
Generated by
1.13.2