Function __global->results_header_row
Definitions
sources/templates_results_table.php
- Get the Tempcode for a results table header row. You would take the output of this, and feed it in as $header_row, in a results_table function call.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$values | array | required parameter | N/A | N/A | The array of field titles that header the entries in the results table (a null value will increment the previous non-null column's colspan - do not use any nulls if there is no previous non-null column) |
$sortables | array | [] | N/A | N/A | A map of sortable code (usually, db field names), to strings giving the human name for the sort order |
$order_param | ID_TEXT | sort | N/A | N/A | The parameter name used to store our sortable |
$current_ordering | ID_TEXT | Blank (empty string) | N/A | N/A | The current ordering ("$sortable $sort_order") |
$guid | string | fbcaf8b021e3939bfce1dce9ff8ed63a | N/A | N/A | GUID to pass to template |
$interactive_options | ?array | Null | N/A | N/A | Array of tuples matching the indices of $values, each pair being a boolean whether the value is searchable, boolean whether the value is filterable, and a sortable type supported by sortable_tables.js (or null) (null: no interactivity) |
$hash | ?ID_TEXT | Null | N/A | N/A | URL hash component without the # (null: none) |
Return
- The generated header row
- Type: Tempcode
- Set: N/A
- Range: N/A