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/SearchResultsForm.class.php";
17:
18: class Legacy_SearchShowallForm extends Legacy_SearchResultsForm
19: {
20: function prepare()
21: {
22:
23:
24:
25: $this->mFormProperties['mid'] =new XCube_IntProperty('mid');
26: $this->mFormProperties['andor'] =new XCube_StringProperty('andor');
27: $this->mFormProperties['query'] =new XCube_StringProperty('query');
28: $this->mFormProperties['start'] =new XCube_IntProperty('start');
29:
30:
31:
32:
33: $this->mFieldProperties['andor'] =new XCube_FieldProperty($this);
34: $this->mFieldProperties['andor']->setDependsByArray(array('mask'));
35: $this->mFieldProperties['andor']->addMessage('mask', _MD_LEGACY_ERROR_MASK, _MD_LEGACY_LANG_ANDOR);
36: $this->mFieldProperties['andor']->addVar('mask', '/^(AND|OR|exact)$/i');
37:
38: $this->set('start', 0);
39: }
40:
41: function update(&$params)
42: {
43: $params['queries'] = $this->mQueries;
44: $params['andor'] = $this->get('andor');
45: $params['maxhit'] = LEGACY_SEARCH_SHOWALL_MAXHIT;
46: $params['start'] = $this->get('start');
47: }
48: }
49:
50: ?>
51: