PHP 인터페이스 Neos\ContentRepository\Domain\Service\ContextFactoryInterface

파일 보기 프로젝트 열기: neos/neos-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
create ( array $contextConfiguration = [] ) : Context Create the context from the given properties. If a context with those properties was already created before then the existing one is returned.
getInstances ( ) : array Returns all known instances of Context.
reset ( ) : void Clears the instances cache clearing all contexts.

메소드 상세

create() 공개 메소드

The context properties to give depend on the implementation of the context object, for the Context it should look like this: array( 'workspaceName' => 'live', 'currentDateTime' => new \Neos\Flow\Utility\Now(), 'dimensions' => array(), 'invisibleContentShown' => FALSE, 'removedContentShown' => FALSE, 'inaccessibleContentShown' => FALSE )
public create ( array $contextConfiguration = [] ) : Context
$contextConfiguration array
리턴 Context

getInstances() 공개 메소드

Returns all known instances of Context.
public getInstances ( ) : array
리턴 array

reset() 공개 메소드

Clears the instances cache clearing all contexts.
public reset ( ) : void
리턴 void