Beispiel #1
0
 public function setColumnValue(base_database_Column $column, base_database_interface_Term $term)
 {
     if ($this->table->existsColumn($column->getName()) === false) {
         throw new base_database_Exception(base_database_Exception::TABLE_COLUMN_NOT_EXISTS);
     }
     $this->columnValues[] = $column->getName() . ' = ' . $term->toString();
 }
Beispiel #2
0
 /**
  * add a new Condition and connect it to the other conditions via "OR"
  *
  * @param base_database_Column $column
  * @param base_database_interface_Term $value
  * @param string $op
  */
 public function addOr(base_database_Column $column, base_database_interface_Term $value, $op = self::EQUAL)
 {
     $this->_validateOperator($op);
     $condition = $column->getName() . " $op " . $value->toString();
     $this->conditionString .= ' OR ' . $condition;
     $this->_conditions['or'][] = $condition;
 }