|
| partial ($value) |
|
| between ($from, $to, $include=true) |
|
| outside ($from, $to, $include=false) |
|
| interval ($value, $interval, $include=true) |
|
| range ($from, $to, $include=true) |
|
| modulo ($value, $interval, $include=true) |
|
| __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
◆ interval()
interval |
( |
|
$value, |
|
|
|
$interval, |
|
|
|
$include = true |
|
) |
| |
Perform an interval match. It's similar to a 'between' match, but the from and to values are calculated based on $value and $interval: $value - $interval < VALUE < $value + $interval
- Paramètres
-
integer | float | $value | The center value of the search space |
integer | float | $interval | The width of the search space |
boolean | $include | Should I include the boundaries in the search? |
- Renvoie
- string The SQL where clause
Références $value.
◆ modulo()
modulo |
( |
|
$value, |
|
|
|
$interval, |
|
|
|
$include = true |
|
) |
| |
Perform an interval match. It's similar to a 'between' match, but the from and to values are calculated based on $value and $interval: $value - $interval < VALUE < $value + $interval
- Paramètres
-
integer | float | $value | The starting value of the search space |
integer | float | $interval | The interval period of the search space |
boolean | $include | Should I include the boundaries in the search? |
- Renvoie
- string The SQL where clause
Références $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
◆ partial()
The partial match is mapped to an exact match
- Paramètres
-
mixed | $value | The value to compare to |
- Renvoie
- string The SQL where clause for this search
Références $value.
◆ range()
range |
( |
|
$from, |
|
|
|
$to, |
|
|
|
$include = true |
|
) |
| |
Perform a range 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 :