PHP Класс Neos\Eel\ProtectedContext

- Access to public properties and array is allowed - Methods have to be whitelisted
Наследование: extends Context
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$whitelist array

Открытые методы

Метод Описание
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

Описание методов

call() публичный Метод

Call a method if in whitelist
public call ( string $method, array $arguments = [] ) : mixed | void
$method string
$arguments array
Результат mixed | void

getAndWrap() публичный Метод

The whitelist for the given path is applied to the new context.
public getAndWrap ( string $path = null ) : Context
$path string
Результат Context The wrapped value

whitelist() публичный Метод

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
Результат void

Описание свойств

$whitelist защищенное свойство

protected array $whitelist
Результат array