Class jDaoConditions

Description

container for all criteria of a query

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


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

the orders we wants the list to be

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

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
addItemOrder (line 89)

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

ends a condition group

void endGroup ()
hasConditions (line 108)

says if there are no conditions

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

says if there are no conditions nor order

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

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 Wed, 07 Sep 2011 13:46:53 +0200 by phpDocumentor 1.4.3