Class rex_context

A generic implementiation of rex_context_provider.

rex_context implements rex_context_provider_interface
Package: redaxo\core
Author: staabm
Located at redaxo/src/core/lib/context.php

Methods summary

public
# __construct( array $globalParams = [] )

Constructs a rex_context with the given global parameters.

public string
# getUrl( array $params = [], boolean $escape = true )

Returns a Url which contains the given parameters.

public
# setParam( string $name, mixed $value )

Set a global parameter.

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.

public string
# getHiddenInputFields( array $params = [] )
public static self
# restore( )

Returns a rex_context instance containing all GET and POST parameters.

public static self
# fromGet( )

Returns a rex_context instance containing all GET parameters.

public static self
# fromPost( )

Returns a rex_context instance containing all POST parameters.