1 tablesort.class.inc public TableSort::__construct(SelectQueryInterface $query, DatabaseConnection $connection)

Overrides SelectQueryExtender::__construct

File

core/includes/tablesort.class.inc, line 19
Classes for extending table sort queries.

Class

TableSort
Query extender class for tablesort queries.

Code

public function __construct(SelectQueryInterface $query, DatabaseConnection $connection) {
  parent::__construct($query, $connection);

  // Add convenience tag to mark that this is an extended query. We have to
  // do this in the constructor to ensure that it is set before preExecute()
  // gets called.
  $this->addTag('tablesort');
}