Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function SelectQueryExtender::execute

2 methods override SelectQueryExtender::execute()
PagerDefault::execute in includes/pager.inc
Override the execute method.
SearchQuery::execute in modules/search/search.extender.inc
Executes the search.

File

includes/database/select.inc, line 716

Class

SelectQueryExtender
The base extender class for Select queries.

Code

public function execute() {
 // By calling preExecute() here, we force it to preprocess the extender
 // object rather than just the base query object. That means
 // hook_query_alter() gets access to the extended object.
 if (!$this->preExecute ($this)) {
 return NULL;
 }
 return $this->query 
 ->execute ();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.