The request commands provide a mechanism for managing the query parameters to a page. The request is simply a special instance of a form object, and is useful for the frequent cases when data must be passed from page to page to determine display or page flow, rather than perform a transaction based on user input via a form.
Also see:
template::request::create
template::request::error
template::request::get_param
template::request::is_valid
template::request::set_param
* indicates required
Public Methods:template::request::create | ||
Create the request data structure. Typically called at the beginning of the code for any page that accepts query parameters.
|
template::request::error | ||||
Manually report request error(s) by setting error messages and then calling is_valid to handle display. Useful for conditions not tied to a single query parameter. The arguments to the procedure may be any number of name-message combinations.
|
template::request::get_param | ||
Retrieves the value(s) of the specified parameter.
|
template::request::is_valid | ||
Checks for any param errors. If errors are found, sets the display template to the specified URL (a system-wide request error page by default).
|
template::request::set_param | ||||||||||||
Declares a query parameter as part of the page request. Validates the values associated with the parameter, in the same fashion as for form elements.
|
* indicates required