XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
ActionSearchForm.class.php
1<?php
11
12if (!defined('XOOPS_ROOT_PATH')) {
13 exit();
14}
15
16require_once XOOPS_ROOT_PATH . '/core/XCube_ActionForm.class.php';
17
19{
20 public $mState = null;
21
22 public function prepare()
23 {
24 $this->mFormProperties['keywords']=new XCube_StringProperty('keywords');
25
26 // set fields
27 $this->mFieldProperties['keywords']=new XCube_FieldProperty($this);
28 $this->mFieldProperties['keywords']->setDependsByArray(['required']);
29 $this->mFieldProperties['keywords']->addMessage('required', _AD_LEGACY_ERROR_SEARCH_REQUIRED);
30 }
31
32 public function fetch()
33 {
34 parent::fetch();
35 $this->set('keywords', trim($this->get('keywords')));
36 }
37}
prepare()
[Abstract] Set up form properties and field properties.
fetch()
Fetches values through the request object.
[Abstract] Used for validating member property values of XCube_ActionForm.
Represents string property.