1: <?php
2:
3: if (!defined('XOOPS_ROOT_PATH')) exit();
4:
5: require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
6:
7: class User_GroupMemberEditForm extends XCube_ActionForm
8: {
9: function getTokenName()
10: {
11: return "module.user.GroupMemberEditForm.TOKEN";
12: }
13:
14: function prepare()
15: {
16:
17:
18:
19: $this->mFormProperties['groupid'] =new XCube_IntProperty('groupid');
20: $this->mFormProperties['uid'] =new XCube_IntArrayProperty('uid');
21:
22:
23:
24:
25: $this->mFieldProperties['uid'] =new XCube_FieldProperty($this);
26: $this->mFieldProperties['uid']->setDependsByArray(array('intRange'));
27: $this->mFieldProperties['uid']->addMessage('intRange', _AD_USER_ERROR_REQUEST_IS_WRONG);
28: $this->mFieldProperties['uid']->addVar('min', '1');
29: $this->mFieldProperties['uid']->addVar('max', '2');
30: }
31: }
32:
33: ?>
34: