ISearchComparison
extends
ISearchOperator
in
Tags
Table of Contents
Constants
- COMPARE_DEFINED = 'is-defined'
- COMPARE_EQUAL = 'eq'
- COMPARE_GREATER_THAN = 'gt'
- COMPARE_GREATER_THAN_EQUAL = 'gte'
- COMPARE_IN = 'in'
- COMPARE_LESS_THAN = 'lt'
- COMPARE_LESS_THAN_EQUAL = 'lte'
- COMPARE_LIKE = 'like'
- COMPARE_LIKE_CASE_SENSITIVE = 'clike'
- HINT_PATH_EQ_HASH = 'path_eq_hash'
Methods
- getExtra() : string
- extra means data are not related to the main files table
- getField() : string
- Get the name of the field to compare with
- getQueryHint() : mixed
- Get a query builder hint by name
- getType() : string
- Get the type of comparison, one of the ISearchComparison::COMPARE_* constants
- getValue() : ParamValue
- Get the value to compare the field with
- setQueryHint() : void
- Get a query builder hint
Constants
COMPARE_DEFINED
public
mixed
COMPARE_DEFINED
= 'is-defined'
Tags
COMPARE_EQUAL
public
mixed
COMPARE_EQUAL
= 'eq'
Tags
COMPARE_GREATER_THAN
public
mixed
COMPARE_GREATER_THAN
= 'gt'
Tags
COMPARE_GREATER_THAN_EQUAL
public
mixed
COMPARE_GREATER_THAN_EQUAL
= 'gte'
Tags
COMPARE_IN
public
mixed
COMPARE_IN
= 'in'
Tags
COMPARE_LESS_THAN
public
mixed
COMPARE_LESS_THAN
= 'lt'
Tags
COMPARE_LESS_THAN_EQUAL
public
mixed
COMPARE_LESS_THAN_EQUAL
= 'lte'
Tags
COMPARE_LIKE
public
mixed
COMPARE_LIKE
= 'like'
Tags
COMPARE_LIKE_CASE_SENSITIVE
public
mixed
COMPARE_LIKE_CASE_SENSITIVE
= 'clike'
Tags
HINT_PATH_EQ_HASH
public
mixed
HINT_PATH_EQ_HASH
= 'path_eq_hash'
Tags
Methods
getExtra()
extra means data are not related to the main files table
public
getExtra() : string
Tags
Return values
stringgetField()
Get the name of the field to compare with
public
getField() : string
i.e. 'size', 'name' or 'mimetype'
Tags
Return values
stringgetQueryHint()
Get a query builder hint by name
public
getQueryHint(string $name, mixed $default) : mixed
Parameters
- $name : string
- $default : mixed
Tags
getType()
Get the type of comparison, one of the ISearchComparison::COMPARE_* constants
public
getType() : string
Tags
Return values
stringgetValue()
Get the value to compare the field with
public
getValue() : ParamValue
Tags
Return values
ParamValuesetQueryHint()
Get a query builder hint
public
setQueryHint(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed