function TableSort::init
Initializes the table sort context.
1 call to TableSort::init()
- TableSort::orderByHeader in includes/
tablesort.inc - Order the query based on a header array.
File
-
includes/
tablesort.inc, line 59
Class
- TableSort
- Query extender class for tablesort queries.
Code
protected function init() {
$ts = $this->order();
$ts['sort'] = $this->getSort();
$ts['query'] = $this->getQueryParameters();
return $ts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.