XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
SearchShowallForm.class.php
1<?php
10
11if (!defined('XOOPS_ROOT_PATH')) {
12 exit();
13}
14
15require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
16require_once XOOPS_MODULE_PATH . '/legacy/class/Legacy_Validator.class.php';
17
18require_once XOOPS_MODULE_PATH . '/legacy/forms/SearchResultsForm.class.php';
19
21{
22 public function prepare()
23 {
24 //
25 // Set form properties
26 //
27 $this->mFormProperties['mid'] =new XCube_IntProperty('mid');
28 $this->mFormProperties['andor'] =new XCube_StringProperty('andor');
29 $this->mFormProperties['query'] =new XCube_StringProperty('query');
30 $this->mFormProperties['start'] =new XCube_IntProperty('start');
31
32 //
33 // Set field properties
34 //
35 $this->mFieldProperties['andor'] =new XCube_FieldProperty($this);
36 $this->mFieldProperties['andor']->setDependsByArray(['mask']);
37 $this->mFieldProperties['andor']->addMessage('mask', _MD_LEGACY_ERROR_MASK, _MD_LEGACY_LANG_ANDOR);
38 $this->mFieldProperties['andor']->addVar('mask', '/^(AND|OR|exact)$/i');
39
40 $this->set('start', 0);
41 }
42
43 public function update(&$params)
44 {
45 $params['queries'] = $this->mQueries;
46 $params['andor'] = $this->get('andor');
47 $params['maxhit'] = LEGACY_SEARCH_SHOWALL_MAXHIT;
48 $params['start'] = $this->get('start');
49 }
50}
update(&$params)
[Abstract] Updates an object with properties values.
prepare()
[Abstract] Set up form properties and field properties.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents int property.
Represents string property.