}
/**
- * Add criteria
+ * Add criteria, this method converts dashes to underscores because dashes
+ * are not valid for criteria keys.
*
* @param $criteriaKey Criteria key
* @param $criteriaValue Criteria value
+ * @param $criteriaType Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
* @return void
*/
- public function addCriteria ($criteriaKey, $criteriaValue) {
+ public function addCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default') {
$this->updateCriteria[$criteriaKey] = $criteriaValue;
}