1: <?php
2: 3: 4: 5:
6:
7: if (!defined('XOOPS_ROOT_PATH')) exit();
8:
9: require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
10: require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php";
11:
12: class User_RecountForm extends XCube_ActionForm
13: {
14: function getTokenName()
15: {
16: return "module.user.RecountForm.TOKEN" . $this->get('uid');
17: }
18:
19: function prepare()
20: {
21:
22:
23:
24: $this->mFormProperties['uid'] =new XCube_IntProperty('uid');
25:
26:
27:
28:
29: $this->mFieldProperties['uid'] =new XCube_FieldProperty($this);
30: $this->mFieldProperties['uid']->setDependsByArray(array('required','objectExist'));
31: $this->mFieldProperties['uid']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_UID);
32: $this->mFieldProperties['uid']->addMessage('objectExist', _AD_USER_ERROR_OBJECTEXIST, _MD_USER_LANG_UID);
33: $this->mFieldProperties['uid']->addVar('handler', 'users');
34: $this->mFieldProperties['uid']->addVar('module', 'user');
35: }
36:
37: function load(&$obj)
38: {
39: $this->set('uid', $obj->get('uid'));
40: }
41:
42: function update(&$obj)
43: {
44: $obj->set('uid', $this->get('uid'));
45: }
46: }
47:
48: ?>
49: