function TableSort::__construct

Overrides SelectQueryExtender::__construct

File

includes/tablesort.inc, line 24

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

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