PHP 클래스 Neos\Eel\ProtectedContext

- Access to public properties and array is allowed - Methods have to be whitelisted
상속: extends Context
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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