rex_context_provider_interface
extends
rex_url_provider_interface
in
Generic interface for classes which provide a complete rex-context.
A rex-context consists of a set of parameters which may get passed using urls (via parameter) or forms (via hidden input fields).
Tags
Table of Contents
Methods
- getHiddenInputFields() : string
- Returns a html string containg hidden input fields for the given parameters.
- getUrl() : string
- Returns a Url which contains the given parameters.
Methods
getHiddenInputFields()
Returns a html string containg hidden input fields for the given parameters.
public
getHiddenInputFields([array<string|int, mixed> $params = [] ]) : string
Parameters
- $params : array<string|int, mixed> = []
-
A array containing key value pairs for the parameter and its value
Return values
string —The generated html source containing the hidden input fields
getUrl()
Returns a Url which contains the given parameters.
public
getUrl([array<string|int, mixed> $params = [] ][, bool $escape = true ]) : string
Parameters
- $params : array<string|int, mixed> = []
-
A scalar array containing key value pairs for the parameter and its value
- $escape : bool = true
-
Flag whether the argument separator "&" should be escaped (&)
Return values
string —The generated Url