XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
GroupMemberEditForm.class.php
1<?php
2
3if (!defined('XOOPS_ROOT_PATH')) {
4 exit();
5}
6
7require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
8
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}
getTokenName()
Gets the token name of this actionform's token.
prepare()
[Abstract] Set up form properties and field properties.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents int[] property. XCube_GenericArrayProperty<XCube_IntProperty>.
Represents int property.