TableSort::getSort

protected function TableSort::getSort

protected TableSort::getSort()

Determine the current sort direction.

Parameters

$headers: An array of column headers in the format described in theme_table().

Return value

The current sort direction ("asc" or "desc").

File

includes/tablesort.inc, line 74
Functions to aid in the creation of sortable tables.

Class

TableSort
Query extender class for tablesort queries.

Code

protected function getSort() {
  return tablesort_get_sort($this->header);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!tablesort.inc/function/TableSort::getSort/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部