Class jDaoConditions

Description

container for all criteria of a query

Located in /dao/jDaoConditions.class.php (line 61)


	
			
Variable Summary
Method Summary
jDaoConditions __construct ([string $glueOp = 'AND'])
void addCondition (string $field_id, string $operator, string $value, [boolean $foo = false])
void addItemGroup (string $field_id)
void addItemOrder (string $field_id, [string $way = 'ASC'], [boolean $allowAnyWay = false])
void endGroup ()
boolean hasConditions ()
boolean isEmpty ()
void startGroup ([string $glueOp = 'AND'])
Variables
jDaoCondition $condition (line 65)
  • access: public
mixed $group = array () (line 75)

the groups we wants the list to be

  • access: public
mixed $order = array () (line 70)

the orders we wants the list to be

  • access: public
Methods
Constructor __construct (line 85)
jDaoConditions __construct ([string $glueOp = 'AND'])
  • string $glueOp: the logical operator which links each conditions : AND or OR
addCondition (line 162)

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
addItemGroup (line 109)

add a group clause

void addItemGroup (string $field_id)
  • string $field_id: the property name used to group results
addItemOrder (line 97)

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
endGroup (line 147)

ends a condition group

void endGroup ()
hasConditions (line 128)

says if there are no conditions

  • return: false if there isn't condition
  • since: 1.0
boolean hasConditions ()
isEmpty (line 117)

says if there are no conditions nor order

  • return: false if there isn't condition
boolean isEmpty ()
startGroup (line 136)

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

Documentation generated on Mon, 26 Oct 2015 21:52:30 +0100 by phpDocumentor 1.4.3