SQLFilter implements ISQLFilter
A SQL where statement
Tags
Table of Contents
$conditions | Conditions | array |
---|---|---|
__construct() | mixed | |
addWhere() | Add some condition to the group | void |
getFilter() | Retrieve the condition group as a string | string |
getValues() | Retrieve a list of values | array |
Properties
$conditions
Conditions
private
array
$conditions
= []
Methods
__construct()
public
__construct(
[ $condition :
ICondition
= null ]
)
: mixed
Parameters
- $condition : ICondition = null
Return values
mixedaddWhere()
Add some condition to the group
public
addWhere(
$condition :
ICondition
[, $or :
bool
= false ]
)
: void
Parameters
- $condition : ICondition
Condition to add
- $or : bool = false
Separate by "or" instead of "and"
getFilter()
Retrieve the condition group as a string
public
getFilter(
)
: string
Return values
string —condition
getValues()
Retrieve a list of values
public
getValues(
)
: array
Return values
array —values