public function SelectQuery::where
Adds an arbitrary WHERE clause to the query.
Parameters
$snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders.
$args: An associative array of arguments.
Return value
QueryConditionInterface The called object.
Overrides QueryConditionInterface::where
Archivo
- drupal-7.x/
includes/ database/ select.inc, line 1047
Class
- SelectQuery
- Query builder for SELECT statements.
Código
public function where($snippet, $args = array()) {
$this->where->where($snippet, $args);
return $this;
}