link_operator = sanitise_string($link_operator); $this->wheres = $wheres; } public function toStringNoLink() { $cnt = 0; $string = " ("; foreach ($this->wheres as $where) { if (!($where instanceof WhereQueryComponent)) throw new DatabaseException(elgg_echo('DatabaseException:WhereSetNonQuery')); if (!$cnt) $string.= $where->toStringNoLink(); else $string.=" $where "; $cnt ++; } $string .= ")"; return $string; } }