PHP Интерфейс Neos\ContentRepository\Domain\Service\ContextFactoryInterface

Показать файл Открыть проект Примеры использования интерфейса

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

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