class RegistryPage_Controller extends Page_Controller (View source)

Properties

Methods

public
string
AllQueryVars()

Get all search query vars, compiled into a query string for a URL.

public
string
QueryLink()

Get all search query vars except Sort and Dir, compiled into a query link.

public
Sort()

No description

public
string
OppositeDirection()

Return the opposite direction from the currently sorted column's direction.

public
RegistryFilterForm()

No description

public
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.

public
doRegistryFilterReset($data, $form, $request)

No description

public
RegistryEntries($paginated = true)

No description

public
Columns($result = null)

No description

public
export($request)

Exports out all the data for the current search results.

public
show($request)

No description

protected
queryList(array $where = array(), array $orderby = array(), string|int $start, string|int $pageLength, bool $paged = true)

Perform a search against the data table.

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.

public
getTemplateList($action)

No description

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.

Return Value

string

Get all search query vars except Sort and Dir, compiled into a query link.

This will escape all the variables to avoid XSS.

Return Value

string

Sort()

No description

string OppositeDirection()

Return the opposite direction from the currently sorted column's direction.

Return Value

string

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.

Parameters

array $data

Form request data

$form
$request

Return Value

array

doRegistryFilterReset($data, $form, $request)

No description

Parameters

$data
$form
$request

RegistryEntries($paginated = true)

No description

Parameters

$paginated

Columns($result = null)

No description

Parameters

$result

export($request)

Exports out all the data for the current search results.

Sends the data to the browser as a CSV file.

Parameters

$request

show($request)

No description

Parameters

$request

protected ArrayList|PaginatedList queryList(array $where = array(), array $orderby = array(), string|int $start, string|int $pageLength, bool $paged = true)

Perform a search against the data table.

Parameters

array $where

Array of strings to add into the WHERE clause

array $orderby

Array of column as key, to direction as value to add into the ORDER BY clause

string|int $start

Record to start at (for paging)

string|int $pageLength

Number of results per page (for paging)

bool $paged

Paged results or not?

Return Value

ArrayList|PaginatedList

protected array escapeSelect(array $names)

Safely escape a list of "select" candidates for a query

Parameters

array $names

List of select fields

Return Value

array

List of names, with each name double quoted

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.

Return Value

array

getTemplateList($action)

No description

Parameters

$action