RegistryPageController
class RegistryPageController extends PageController (View source)
Properties
static private bool | $output_headers | Whether to output headers when sending the export file. This can be disabled for example in unit tests. |
Methods
Get all search query vars, compiled into a query string for a URL.
Get all search query vars except Sort and Dir, compiled into a query link.
No description
Return the opposite direction from the currently sorted column's direction.
No description
Build up search filters from user's search criteria and hand off to the {@link query()} method to search against the database.
No description
No description
Loosely check if the record can be sorted by a property
Exports out all the data for the current search results.
No description
No description
Sanitise a PHP class name for display in URLs etc
Details
string
AllQueryVars()
Get all search query vars, compiled into a query string for a URL.
This will escape all the variables to avoid XSS.
string
QueryLink()
Get all search query vars except Sort and Dir, compiled into a query link.
This will escape all the variables to avoid XSS.
Sort()
string
OppositeDirection()
Return the opposite direction from the currently sorted column's direction.
RegistryFilterForm()
array
doRegistryFilter(array $data, $form, $request)
Build up search filters from user's search criteria and hand off to the {@link query()} method to search against the database.
doRegistryFilterReset($data, $form, $request)
RegistryEntries($paginated = true)
bool
canSortBy(string $property)
Loosely check if the record can be sorted by a property
ArrayList
Columns(int $id = null)
Format a set of columns, used for headings and row data
export($request)
Exports out all the data for the current search results.
Sends the data to the browser as a CSV file.
show($request)
getTemplateList($action)
string
getClassNameForUrl($className)
Sanitise a PHP class name for display in URLs etc