XCL Web Application Platform
2.5.0
The XoopsCube Legacy Project
📘
Loading...
Searching...
No Matches
ActionSearchForm.class.php
1
<?php
11
12
if
(!defined(
'XOOPS_ROOT_PATH'
)) {
13
exit();
14
}
15
16
require_once XOOPS_ROOT_PATH .
'/core/XCube_ActionForm.class.php'
;
17
18
class
Legacy_ActionSearchForm
extends
XCube_ActionForm
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
}
Legacy_ActionSearchForm
Definition
ActionSearchForm.class.php:19
Legacy_ActionSearchForm\prepare
prepare()
[Abstract] Set up form properties and field properties.
Definition
ActionSearchForm.class.php:22
Legacy_ActionSearchForm\fetch
fetch()
Fetches values through the request object.
Definition
ActionSearchForm.class.php:32
XCube_ActionForm
Definition
XCube_ActionForm.class.php:51
XCube_FieldProperty
[Abstract] Used for validating member property values of XCube_ActionForm.
Definition
XCube_ActionForm.class.php:438
XCube_StringProperty
Represents string property.
Definition
XCube_Property.class.php:506
html
modules
legacy
admin
forms
ActionSearchForm.class.php
Generated by
1.13.2