You are here

public function QueryExtendableInterface::extend in Drupal 7

Enhance this object by wrapping it in an extender object.

Parameters

$extender_name: The base name of the extending class. The base name will be checked against the current database connection to allow driver-specific subclasses as well, using the same logic as the query objects themselves. For example, PagerDefault_mysql is the MySQL-specific override for PagerDefault.

Return value

QueryExtendableInterface The extender object, which now contains a reference to this object.

2 methods override QueryExtendableInterface::extend()
SelectQuery::extend in includes/database/select.inc
Enhance this object by wrapping it in an extender object.
SelectQueryExtender::extend in includes/database/select.inc
Enhance this object by wrapping it in an extender object.

File

includes/database/select.inc, line 33

Class

QueryExtendableInterface
Interface for extendable query objects.

Code

public function extend($extender_name);