Framework  3.9
BooleanSearchParameterHandler Class Reference
+ Inheritance diagram for BooleanSearchParameterHandler:
+ Collaboration diagram for BooleanSearchParameterHandler:

Public Member Functions

 equal ($name, $value)
 Generates the constraint expression for equality matching parameters. More...
 
 checked ($name, $value)
 Generate the constraint expresssion for matching boolean only when the UI element is selected. More...
 
- Public Member Functions inherited from SearchParameterHandler
 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...
 

Detailed Description

Definition at line 517 of file search_form.inc.

Member Function Documentation

◆ checked()

BooleanSearchParameterHandler::checked (   $name,
  $value 
)

Generate the constraint expresssion for matching boolean only when the UI element is selected.

Parameters
string$name
mixed$value

Reimplemented from SearchParameterHandler.

Definition at line 527 of file search_form.inc.

528  {
529  trace("FILTER: checked $name $value", 3);
530  checkNumeric($value);
531  $out = ($value) ? "$name=$value" : "";
532  trace("FILTER: out $out", 3);
533  return $out;
534  }
checkNumeric($p)
Security helper function.
Definition: functions.inc:630
trace($msg, $lvl=3, $callStack=null)
Send output to the trace log.
Definition: functions.inc:1010

◆ equal()

BooleanSearchParameterHandler::equal (   $name,
  $value 
)

Generates the constraint expression for equality matching parameters.

Parameters
string$namethe name of the field
mixed$valuethe value to match
Returns
string a SQL expression to perform the match

Reimplemented from SearchParameterHandler.

Definition at line 519 of file search_form.inc.

520  {
521  trace("FILTER: equal $name $value", 3);
522  checkNumeric($value);
523 
524  return "$name=$value";
525  }

The documentation for this class was generated from the following file: