|
| getDefaultSearchMethod () |
|
| between ($from, $to, $include=true) |
|
| outside ($from, $to, $include=false) |
|
| interval ($value, $interval, $include=true) |
|
| range ($from, $to, $include=true) |
|
| __construct ($db, $field, $table_alias=false) |
|
| getDefaultSearchMethod () |
|
| partial ($value) |
|
| exact ($value) |
|
| between ($from, $to, $include=true) |
|
| outside ($from, $to, $include=false) |
|
| interval ($value, $interval, $include=true) |
|
| range ($from, $to, $include=false) |
|
| modulo ($from, $to, $include=false) |
|
| __construct ($db, $field, $table_alias=false) |
|
| isEmpty ($value) |
|
| getDefaultSearchMethod () |
|
| getSearchMethods () |
|
| exact ($value) |
|
| partial ($value) |
|
| between ($from, $to, $include=true) |
|
| outside ($from, $to, $include=false) |
|
| interval ($from, $interval) |
|
| range ($from, $to, $include=true) |
|
| modulo ($from, $interval, $include=true) |
|
| search ($value, $operator='=') |
|
| getFieldName () |
|
◆ between()
between |
( |
|
$from, |
|
|
|
$to, |
|
|
|
$include = true |
|
) |
| |
Perform a between limits match. When $include is true the condition tested is: $from <= VALUE <= $to When $include is false the condition tested is: $from < VALUE < $to
- Paramètres
-
mixed | $from | The lowest value to compare to |
mixed | $to | The higherst value to compare to |
boolean | $include | Should we include the boundaries in the search? |
- Renvoie
- string The SQL where clause for this search
◆ getDefaultSearchMethod()
getDefaultSearchMethod |
( |
| ) |
|
Returns the default search method for this field.
- Renvoie
- string
◆ getInterval()
Parses an interval –which may be given as a string, array or object– into a standardised hash array that can then be used bu the interval() method.
- Paramètres
-
string | array | object | $interval | The interval expression to parse |
- Renvoie
- array The parsed, hash array form of the interval
Références $value.
◆ interval()
interval |
( |
|
$value, |
|
|
|
$interval, |
|
|
|
$include = true |
|
) |
| |
Interval date search
- Paramètres
-
string | $value | The value to search |
string | array | object | $interval | The interval. Can be (+1 MONTH or array('value' => 1, 'unit' => 'MONTH', 'sign' => '+')) |
boolean | $include | If the borders should be included |
- Renvoie
- string the sql string
Références $function, et $value.
◆ outside()
outside |
( |
|
$from, |
|
|
|
$to, |
|
|
|
$include = false |
|
) |
| |
Perform an outside limits match. When $include is true the condition tested is: (VALUE <= $from) || (VALUE >= $to) When $include is false the condition tested is: (VALUE < $from) || (VALUE > $to)
- Paramètres
-
mixed | $from | The lowest value of the excluded range |
mixed | $to | The higherst value of the excluded range |
boolean | $include | Should we include the boundaries in the search? |
- Renvoie
- string The SQL where clause for this search
◆ range()
range |
( |
|
$from, |
|
|
|
$to, |
|
|
|
$include = true |
|
) |
| |
Perform a between limits match. When $include is true the condition tested is: $from <= VALUE <= $to When $include is false the condition tested is: $from < VALUE < $to
- Paramètres
-
mixed | $from | The lowest value to compare to |
mixed | $to | The higherst value to compare to |
boolean | $include | Should we include the boundaries in the search? |
- Renvoie
- string The SQL where clause for this search
La documentation de cette classe a été générée à partir du fichier suivant :