TableSort
class TableSort (View source)
Provides a class for table sorting processing and rendering.
Constants
| ASC |
|
| DESC |
|
Methods
static array
getContextFromRequest(array $headers, Request $request)
Initializes the table sort context.
static
header(string $cell_content, array $cell_attributes, array $header, array $context)
Formats a column header.
static array
getOrder(array $headers, Request $request)
Determines the current sort criterion.
static string
getSort(array $headers, Request $request)
Determines the current sort direction.
static array
getQueryParameters(Request $request)
Composes a URL query parameter array for table sorting links.
Details
static array
getContextFromRequest(array $headers, Request $request)
Initializes the table sort context.
static
header(string $cell_content, array $cell_attributes, array $header, array $context)
Formats 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.
static array
getOrder(array $headers, Request $request)
Determines the current sort criterion.
static string
getSort(array $headers, Request $request)
Determines the current sort direction.
static array
getQueryParameters(Request $request)
| internal |
Composes a URL query parameter array for table sorting links.