Method |
Description |
|
__construct ( JDatabaseDriver $db, object $field ) |
Constructor |
|
between ( mixed $from, mixed $to, boolean $include = true ) : string |
Perform a between limits match (usually: search for a value between
two numbers or a date between two preset dates). When $include is true
the condition tested is:
$from <= VALUE <= $to
When $include is false the condition tested is:
$from < VALUE < $to |
|
exact ( mixed $value ) : string |
Perform an exact match (equality matching) |
|
getDefaultSearchMethod ( ) : string |
Returns the default search method for a field. This always returns 'exact'
and you are supposed to override it in specialised classes. The possible
values are exact, partial, between and outside, unless something
different is returned by getSearchMethods(). |
|
getField ( object $field, array $config = [] ) : AbstractFilter |
Creates a field Object based on the field column type |
|
getFieldName ( ) : string |
Get the field name |
|
getFieldType ( string $type ) : string |
Get the class name based on the field Type |
|
getSearchMethods ( ) : array |
Return the search methods available for this field class, |
|
interval ( string $from, string | array | object $interval ) : string |
Perform an interval search (usually: a date interval check) |
|
isEmpty ( mixed $value ) : boolean |
Is it a null or otherwise empty value? |
|
modulo ( integer | float $from, integer | float $interval, boolean $include = true ) : string |
Perform an modulo search |
|
outside ( mixed $from, mixed $to, boolean $include = false ) : string |
Perform an outside limits match (usually: search for a value outside an
area or a date outside a preset period). 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 |
Perform a partial match (usually: search in string) |
|
range ( mixed $from, mixed $to, boolean $include = true ) : string |
Perform a between limits match (usually: search for a value between
two numbers or a date between two preset dates). When $include is true
the condition tested is:
$from <= VALUE <= $to
When $include is false the condition tested is:
$from < VALUE < $to |
|
search ( mixed $value, string $operator = '=' ) : string |
Return the SQL where clause for a search |
|