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 an order clause
void
addItemOrder
(string $field_id, [string $way = 'ASC'])
-
string
$field_id: the property name used to order results
-
string
$way: the order type : asc or desc
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