1: <?php
2: 3: 4: 5: 6: 7: 8: 9:
10:
11: if (!defined('XOOPS_ROOT_PATH')) exit();
12:
13: require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php";
14: require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php";
15:
16: require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchShowallForm.class.php";
17:
18: class Legacy_SearchShowallbyuserForm extends Legacy_SearchShowallForm
19: {
20: function prepare()
21: {
22: parent::prepare();
23:
24:
25:
26:
27: $this->mFormProperties['uid'] =new XCube_IntProperty('uid');
28: $this->mFormProperties['mid'] =new XCube_IntProperty('mid');
29: $this->mFormProperties['start'] =new XCube_IntProperty('start');
30:
31:
32:
33:
34: $this->mFieldProperties['uid'] =new XCube_FieldProperty($this);
35: $this->mFieldProperties['uid']->setDependsByArray(array('required'));
36: $this->mFieldProperties['uid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_UID);
37:
38: $this->mFieldProperties['mid'] =new XCube_FieldProperty($this);
39: $this->mFieldProperties['mid']->setDependsByArray(array('required'));
40: $this->mFieldProperties['mid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_MID);
41: }
42:
43: function update(&$params)
44: {
45: $params['uid'] = $this->get('uid');
46: $params['start'] = $this->get('start');
47:
48: if (defined("LEGACY_SEARCH_SHOWALL_MAXHIT")) {
49: $params['maxhit'] = LEGACY_SEARCH_SHOWALL_MAXHIT;
50: }
51: else {
52: $params['maxhit'] = 20;
53: }
54: }
55: }
56:
57: ?>
58: