/** * @return Wax_Db_Query_Delete */ public function orWhere($condition) { $num = func_num_args(); if ($num == 2) { $value = func_get_arg(1); if (is_array($value) || strpos($condition, Wax_Db::PLACEHOLDER)) { $condition = Wax_Db::quoteInto($condition, $value); } else { $condition = "{$condition} = " . Wax_Db::quote($value); } } elseif ($num > 1) { $bind = func_get_args(); array_shift($bind); $condition = Wax_Db::quoteInto($condition, $bind); } if (sizeof($this->_where) != 0) { $this->_where[] = " OR ( {$condition} )"; } else { $this->_where[] = " ( {$condition} )"; } return $this; }