![]() |
Framework
3.9
|
Base class for SearchParameterHandlers. More...
Public Member Functions | |
equal ($name, $value) | |
Generates the constraint expression for equality matching parameters. More... | |
like ($name, $value) | |
Generates the constraint expression for 'like' matching parameters, i.e. More... | |
startsWith ($name, $value) | |
Generates the constraint expression for 'startsWith' matching parameters, i.e. More... | |
from ($name, $from) | |
Generates the constraint expression for 'from' matching parameters, i.e. More... | |
to ($name, $to) | |
Generates the constraint expression for 'to' matching parameters, i.e. More... | |
range ($name, $from, $to) | |
Generates the constraint expression for 'range' matching parameters, i.e. More... | |
member ($name, $set) | |
Generate the constraint expression for set membership matching paramters, matching values in a comma delimite set. More... | |
any ($name, $value) | |
Generate the constraint expression for matching any word in a group of words. More... | |
all ($name, $value) | |
Generate the constraint expression for matching all words in a group of words but allowing other words in between. More... | |
fullName ($f_name, $l_name, $value) | |
Generate the constraint expression for matching the f_name and l_name fields to a given value. More... | |
checked ($name, $value) | |
Generate the constraint expresssion for matching boolean only when the UI element is selected. More... | |
Base class for SearchParameterHandlers.
Each derived SearchParameterHandler should extend this base class and implement the type-dependent behaviors appropriate for the type being handled.
SearchParameterHandlers are responsible for generating the query constraint expressions that provide appropriate matching for the search parameters being used to build a query from information entered into a SearchForm.
Definition at line 50 of file search_form.inc.
SearchParameterHandler::all | ( | $name, | |
$value | |||
) |
Generate the constraint expression for matching all words in a group of words but allowing other words in between.
string | $name | the name of the field |
string | $value | a string that may contain multiple words |
Reimplemented in StringSearchParameterHandler.
Definition at line 156 of file search_form.inc.
SearchParameterHandler::any | ( | $name, | |
$value | |||
) |
Generate the constraint expression for matching any word in a group of words.
string | $name | the name of the field |
string | $value | a string that may contain multiple words |
Reimplemented in StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 143 of file search_form.inc.
SearchParameterHandler::checked | ( | $name, | |
$value | |||
) |
Generate the constraint expresssion for matching boolean only when the UI element is selected.
string | $name | |
mixed | $value |
Reimplemented in BooleanSearchParameterHandler.
Definition at line 180 of file search_form.inc.
SearchParameterHandler::equal | ( | $name, | |
$value | |||
) |
Generates the constraint expression for equality matching parameters.
string | $name | the name of the field |
mixed | $value | the value to match |
Reimplemented in BooleanSearchParameterHandler, DateSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 58 of file search_form.inc.
SearchParameterHandler::from | ( | $name, | |
$from | |||
) |
Generates the constraint expression for 'from' matching parameters, i.e.
matching values that are greater than or equal to the specified value.
string | $name | the name of the field |
mixed | $from | the lower bound |
Reimplemented in DateSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 92 of file search_form.inc.
SearchParameterHandler::fullName | ( | $f_name, | |
$l_name, | |||
$value | |||
) |
Generate the constraint expression for matching the f_name and l_name fields to a given value.
string | $f_name | the name of the first name field |
string | $l_name | the name of the last name field |
string | $value | a string that may contain multiple words |
Reimplemented in StringSearchParameterHandler.
Definition at line 169 of file search_form.inc.
SearchParameterHandler::like | ( | $name, | |
$value | |||
) |
Generates the constraint expression for 'like' matching parameters, i.e.
matching a substring or partial match.
string | $name | the name of the field |
mixed | $value | the value to match |
Reimplemented in DateSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 69 of file search_form.inc.
SearchParameterHandler::member | ( | $name, | |
$set | |||
) |
Generate the constraint expression for set membership matching paramters, matching values in a comma delimite set.
string | $name | the name of the field |
string | $set | a comma delimited set of values to match |
Reimplemented in CrossReferenceSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 130 of file search_form.inc.
SearchParameterHandler::range | ( | $name, | |
$from, | |||
$to | |||
) |
Generates the constraint expression for 'range' matching parameters, i.e.
matching values that within the range of the two specified values.
string | $name | the name of the field |
string | $from | the lower bound |
mixed | $to | the value to match |
Reimplemented in DateSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 117 of file search_form.inc.
SearchParameterHandler::startsWith | ( | $name, | |
$value | |||
) |
Generates the constraint expression for 'startsWith' matching parameters, i.e.
matching a substring or partial match at the start of the field only.
string | $name | the name of the field |
string | $value | the value to match |
Reimplemented in DateSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 80 of file search_form.inc.
SearchParameterHandler::to | ( | $name, | |
$to | |||
) |
Generates the constraint expression for 'to' matching parameters, i.e.
matching values that are less than or equal to the specified value.
string | $name | the name of the field |
mixed | $to | the upper bound |
Reimplemented in DateSearchParameterHandler, StringSearchParameterHandler, and NumberSearchParameterHandler.
Definition at line 104 of file search_form.inc.