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