RegistryPageController
class RegistryPageController extends PageController (View source)
Properties
Methods
Get all search query vars except Sort and Dir, compiled into a query link.
Return the opposite direction from the currently sorted column's direction.
Build up search filters from user's search criteria and hand off to the query() method to search against the database.
Returns boolean if the fieldname is a relationship on the instance.
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.
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()
No description
string
OppositeDirection()
Return the opposite direction from the currently sorted column's direction.
RegistryFilterForm()
No description
array
doRegistryFilter(array $data, $form, $request)
Build up search filters from user's search criteria and hand off to the query() method to search against the database.
doRegistryFilterReset($data, $form, $request)
No description
RegistryEntries($paginated = true)
No description
bool
canSortBy(string $property)
Loosely check if the record can be sorted by a property
ArrayData>
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)
No description
protected SS_List
queryList()
Perform a search against the data table.
protected bool
instanceHasRelationship(DataObject $singleton, string $field)
Returns boolean if the fieldname is a relationship on the instance.
protected array
escapeSelect(array $names)
Safely escape a list of "select" candidates for a query
protected array
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.
This will NOT escape values to avoid XSS.
getTemplateList($action)
No description
string
getClassNameForUrl($className)
Sanitise a PHP class name for display in URLs etc