[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/includes/ -> tablesort.inc (summary)

(no description)

File Size: 199 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  tablesort_init()
  tablesort_sql()
  tablesort_header()
  tablesort_cell()
  tablesort_get_querystring()
  tablesort_get_order()
  tablesort_get_sort()

Functions
Functions that are not part of a class:

tablesort_init($header)   X-Ref
Initialize the table sort context.


tablesort_sql($header, $before = '')   X-Ref
Create an SQL sort clause.

This function produces the ORDER BY clause to insert in your SQL queries,
assuring that the returned database table rows match the sort order chosen
by the user.

param: $header
param: $before
return:

tablesort_header($cell, $header, $ts)   X-Ref
Format a column header.

If the cell in question is the column header for the current sort criterion,
it gets special formatting. All possible sort criteria become links.

param: $cell
param: $header
param: $ts
return:

tablesort_cell($cell, $header, $ts, $i)   X-Ref
Format a table cell.

Adds a class attribute to all cells in the currently active column.

param: $cell
param: $header
param: $ts
param: $i
return:

tablesort_get_querystring()   X-Ref
Compose a query string to append to table sorting requests.

return:

tablesort_get_order($headers)   X-Ref
Determine the current sort criterion.

param: $headers
return:

tablesort_get_sort($headers)   X-Ref
Determine the current sort direction.

param: $headers
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7