public function PagerDefault::__construct
7.x pager.inc | public PagerDefault::__construct(SelectQueryInterface $query, DatabaseConnection $connection) |
Overrides SelectQueryExtender::__construct
File
- drupal-7.x/
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');
}