XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
GroupMemberEditForm.class.php
1
<?php
2
3
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
4
exit();
5
}
6
7
require_once XOOPS_ROOT_PATH .
'/core/XCube_ActionForm.class.php'
;
8
9
class
User_GroupMemberEditForm
extends
XCube_ActionForm
10
{
11
public
function
getTokenName
()
12
{
13
return
'module.user.GroupMemberEditForm.TOKEN'
;
14
}
15
16
public
function
prepare
()
17
{
18
//
19
// Set form properties
20
//
21
$this->mFormProperties[
'groupid'
] =
new
XCube_IntProperty
(
'groupid'
);
22
$this->mFormProperties[
'uid'
] =
new
XCube_IntArrayProperty
(
'uid'
);
23
24
//
25
// Set field properties
26
//
27
$this->mFieldProperties[
'uid'
] =
new
XCube_FieldProperty
($this);
28
$this->mFieldProperties[
'uid'
]->setDependsByArray([
'intRange'
]);
29
$this->mFieldProperties[
'uid'
]->addMessage(
'intRange'
, _AD_USER_ERROR_REQUEST_IS_WRONG);
30
$this->mFieldProperties[
'uid'
]->addVar(
'min'
,
'1'
);
31
$this->mFieldProperties[
'uid'
]->addVar(
'max'
,
'2'
);
32
}
33
}
User_GroupMemberEditForm
Definition
GroupMemberEditForm.class.php:10
User_GroupMemberEditForm\getTokenName
getTokenName()
Gets the token name of this actionform's token.
Definition
GroupMemberEditForm.class.php:11
User_GroupMemberEditForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
GroupMemberEditForm.class.php:16
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_IntArrayProperty
Represents int[] property. XCube_GenericArrayProperty<XCube_IntProperty>.
Definition
XCube_Property.class.php:472
XCube_IntProperty
Represents int property.
Definition
XCube_Property.class.php:461
html
modules
user
admin
forms
GroupMemberEditForm.class.php
Generated by
1.13.2