\rex_context_provider_interface

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

Summary

Methods
Constants
getUrl()
getHiddenInputFields()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getUrl()

getUrl(array  $params = [], bool  $escape = true) : string

Returns a Url which contains the given parameters.

Parameters

array $params

A scalar array containing key value pairs for the parameter and its value

bool $escape

Flag whether the argument separator "&" should be escaped (&)

Returns

string —

The generated Url

getHiddenInputFields()

getHiddenInputFields(array  $params = []) : string

Returns a html string containg hidden input fields for the given parameters.

Parameters

array $params

A array containing key value pairs for the parameter and its value

Returns

string —

The generated html source containing the hidden input fields