jDaoConditions
__construct
([string $glueOp = 'AND'])
-
string
$glueOp: the logical operator which links each conditions : AND or OR
adds a condition
void
addCondition
(string $field_id, string $operator, string $value, [boolean $foo = false])
-
string
$field_id: the property name on which the condition applies
-
string
$operator: the sql operator
-
string
$value: the value which is compared to the property
-
boolean
$foo: parameter for internal use : don't use it or set to false
add a group clause
void
addItemGroup
(string $field_id)
-
string
$field_id: the property name used to group results
add an order clause
void
addItemOrder
(string $field_id, [string $way = 'ASC'], [boolean $allowAnyWay = false])
-
string
$field_id: the property name used to order results
-
string
$way: the order type : asc or desc
-
boolean
$allowAnyWay: true if the value of $way should be checked. Internal use. Not recommended because it may cause security issues
ends a condition group
void
endGroup
()
says if there are no conditions
boolean
hasConditions
()
says if there are no conditions nor order
boolean
isEmpty
()
starts a new condition group
void
startGroup
([string $glueOp = 'AND'])
-
string
$glueOp: the logical operator which links each conditions in the group : AND or OR