SilverStripe\Registry\RegistryPageController
Synopsis
class RegistryPageController
extends PageController
{
- // members
- private static array $allowed_actions = ;
- private static bool $output_headers = true;
- // methods
- public string AllQueryVars()
- public string QueryLink()
- public void Sort()
- public string OppositeDirection()
- public void RegistryFilterForm()
- public array doRegistryFilter()
- public void doRegistryFilterReset()
- public void RegistryEntries()
- public boolean canSortBy()
- public ArrayList Columns()
- public void export()
- public void show()
- protected SS_List queryList()
- protected bool instanceHasRelationship()
- protected array escapeSelect()
- protected array queryVars()
- public void getTemplateList()
- public string getClassNameForUrl()
Hierarchy
Extends
- PageController
Members
private
- $allowed_actions
- $output_headers
—
SilverStripe\Registry\bool
Whether to output headers when sending the export file. This can be disabled for example in unit tests.
Methods
protected
- escapeSelect() — Safely escape a list of "select" candidates for a query
- instanceHasRelationship() — Returns boolean if the fieldname is a relationship on the instance.
- queryList() — Perform a search against the data table.
- queryVars() — Compiles all available GET variables for the result columns into an array. Used internally, not to be used directly with the templates or outside classes.
public
- AllQueryVars() — Get all search query vars, compiled into a query string for a URL.
- Columns() — Format a set of columns, used for headings and row data
- OppositeDirection() — Return the opposite direction from the currently sorted column's direction.
- QueryLink() — Get all search query vars except Sort and Dir, compiled into a query link.
- RegistryEntries()
- RegistryFilterForm()
- Sort()
- canSortBy() — Loosely check if the record can be sorted by a property
- doRegistryFilter() — Build up search filters from user's search criteria and hand off to the {@link query()} method to search against the database.
- doRegistryFilterReset()
- export() — Exports out all the data for the current search results.
- getClassNameForUrl() — Sanitise a PHP class name for display in URLs etc
- getTemplateList()
- show()