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'])
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 154)

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 104)

add a group clause

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

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

ends a condition group

void endGroup ()
hasConditions (line 123)

says if there are no conditions

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

says if there are no conditions nor order

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

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 Thu, 22 Mar 2012 22:14:37 +0100 by phpDocumentor 1.4.3