Class rex_context
A generic implementiation of rex_context_provider.
-
rex_context
implements
rex_context_provider_interface
Methods summary
public
|
#
__construct( array $globalParams = [] )
Constructs a rex_context with the given global parameters.
Constructs a rex_context with the given global parameters.
Parameters
- $globalParams
- A array containing only scalar values for key/value
|
|
public
string
|
#
getUrl( array $params = [], boolean $escape = true )
Returns a Url which contains the given parameters.
Returns a Url which contains the given parameters.
Parameters
- $params
- A scalar array containing key value pairs for the parameter and its value
- $escape
- Flag whether the argument separator "&" should be escaped (&)
Returns
string The generated Url
Implementation of
|
|
public
|
#
setParam( string $name, mixed $value )
Set a global parameter.
Parameters
|
|
public
mixed
|
#
getParam( string $name, string $default = null )
Returns the value associated with the given parameter $name. When no value is
set, $default will be returned.
Returns the value associated with the given parameter $name. When no value is
set, $default will be returned.
Parameters
Returns
mixed mixed
|
|
public
string
|
#
getHiddenInputFields( array $params = [] )
Parameters
- $params
- A array containing key value pairs for the parameter and its value
Returns
string The generated html source containing the hidden input fields
See
rex_context_provider::getHiddenInputFields()
Implementation of
|
|
public static
self
|
#
restore( )
Returns a rex_context instance containing all GET and POST parameters.
Returns a rex_context instance containing all GET and POST parameters.
Returns
self self
|
|
public static
self
|
#
fromGet( )
Returns a rex_context instance containing all GET parameters.
Returns a rex_context instance containing all GET parameters.
Returns
self self
|
|
public static
self
|
#
fromPost( )
Returns a rex_context instance containing all POST parameters.
Returns a rex_context instance containing all POST parameters.
Returns
self self
|
|