public function PagerDefault::__construct in Drupal 7
Overrides SelectQueryExtender::__construct
File
- includes/
pager.inc, line 45 - Functions to aid in presenting database results as a set of pages.
Class
- PagerDefault
- Query extender for pager queries.
Code
public function __construct(SelectQueryInterface $query, DatabaseConnection $connection) {
parent::__construct($query, $connection);
// Add pager tag. Do this here to ensure that it is always added before
// preExecute() is called.
$this
->addTag('pager');
}