1 pager.class.inc public PagerDefault::__construct(SelectQueryInterface $query, DatabaseConnection $connection)

Creates a SelectQueryExtender object.

Parameters

SelectQueryInterface $query: The query to be extended.

DatabaseConnection $connection: The database connection for the given query.

Overrides SelectQueryExtender::__construct

File

core/includes/pager.class.inc, line 42

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');
}