1 select.inc | public SelectQueryExtender::where($snippet, $args = array()) |
Adds an arbitrary WHERE clause to the query.
Parameters
string $snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders.
array $args: An associative array of arguments.
Return value
QueryConditionInterface: The called object.
Overrides QueryConditionInterface::where
File
- core/
includes/ database/ select.inc, line 695 - Contains classes and interfaces for Select queries.
Class
- SelectQueryExtender
- The base extender class for Select queries.
Code
public function where($snippet, $args = array()) {
$this->query->where($snippet, $args);
return $this;
}