Метод |
Описание |
|
between ( mixed $from, mixed $to, boolean $include = true ) : string |
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 |
|
interval ( integer | float $value, integer | float $interval, boolean $include = true ) : string |
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 |
|
modulo ( integer | float $value, integer | float $interval, boolean $include = true ) : string |
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 |
|
outside ( mixed $from, mixed $to, boolean $include = false ) : string |
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) |
|
partial ( mixed $value ) : string |
The partial match is mapped to an exact match |
|
range ( mixed $from, mixed $to, boolean $include = true ) : string |
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 |
|
sanitiseValue ( mixed $value ) : mixed |
Sanitises float values. Really ugly and desperate workaround. Read below. |
|
search ( mixed $value, string $operator = '=' ) : string |
Overrides the parent to handle floats in locales where the decimal separator is a comma instead of a dot |
|