PHP Class Neos\Eel\ProtectedContext

- Access to public properties and array is allowed - Methods have to be whitelisted
Inheritance: extends Context
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$whitelist array

Public Methods

Method Description
call ( string $method, array $arguments = [] ) : mixed | void Call a method if in whitelist
getAndWrap ( string $path = null ) : Context Get a value by path and wrap it into another context
whitelist ( array | string $pathOrMethods ) : void Whitelist the given method (or array of methods) for calls

Method Details

call() public method

Call a method if in whitelist
public call ( string $method, array $arguments = [] ) : mixed | void
$method string
$arguments array
return mixed | void

getAndWrap() public method

The whitelist for the given path is applied to the new context.
public getAndWrap ( string $path = null ) : Context
$path string
return Context The wrapped value

whitelist() public method

Method can be whitelisted on the root level of the context or for arbitrary paths. A special method "*" will allow all methods to be called. Examples: $context->whitelist('myMethod'); $context->whitelist('*'); $context->whitelist(array('String.*', 'Array.reverse'));
public whitelist ( array | string $pathOrMethods ) : void
$pathOrMethods array | string
return void

Property Details

$whitelist protected_oe property

protected array $whitelist
return array