1 select.inc public SelectQuery::extend($extender_name)

Implements QueryExtendableInterface::extend().

Return value

SelectQueryInterface:

Overrides QueryExtendableInterface::extend

File

core/includes/database/select.inc, line 1247

Class

SelectQuery
Query builder for SELECT statements.

Code

public function extend($extender_name) {
  $override_class = $extender_name . '_' . $this->connection->driver();
  if (class_exists($override_class)) {
    $extender_name = $override_class;
  }
  return new $extender_name($this, $this->connection);
}