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:
15: class Legacy_ActionSearchForm extends XCube_ActionForm
16: {
17: var $mState = null;
18:
19: function prepare()
20: {
21: $this->mFormProperties['keywords']=new XCube_StringProperty('keywords');
22:
23:
24: $this->mFieldProperties['keywords']=new XCube_FieldProperty($this);
25: $this->mFieldProperties['keywords']->setDependsByArray(array('required'));
26: $this->mFieldProperties['keywords']->addMessage("required",_AD_LEGACY_ERROR_SEARCH_REQUIRED);
27: }
28:
29: function fetch()
30: {
31: parent::fetch();
32: $this->set('keywords', trim($this->get('keywords')));
33: }
34: }
35: