Property | Type | Description | |
---|---|---|---|
$contextFactory | Neos\ContentRepository\Domain\Service\ContextFactoryInterface | ||
$currentDateTime | DateTime | ||
$dimensions | array | ||
$firstLevelNodeCache | |||
$inaccessibleContentShown | boolean | If TRUE, even content elements will be shown which are not accessible by the currently logged in account. | |
$invisibleContentShown | boolean | If TRUE, invisible content elements will be shown. | |
$nodeDataRepository | |||
$nodeFactory | |||
$removedContentShown | boolean | If TRUE, removed content elements will be shown, even though they are removed. | |
$systemLogger | Neos\Flow\Log\SystemLoggerInterface | ||
$targetDimensions | array | ||
$workspace | |||
$workspaceName | string | ||
$workspaceRepository |
Method | Description | |
---|---|---|
__construct ( string $workspaceName, DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, boolean $invisibleContentShown, boolean $removedContentShown, boolean $inaccessibleContentShown ) | Creates a new Context object. | |
adoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $recursive = false ) : Neos\ContentRepository\Domain\Model\NodeInterface | Adopts a node from a (possibly) different context to this context | |
getCurrentDateTime ( ) : DateTime | Returns the current date and time in form of a \DateTime object. | |
getDimensions ( ) : array | An indexed array of dimensions with ordered list of values for matching nodes by content dimensions | |
getFirstLevelNodeCache ( ) : |
Not public API! | |
getNode ( string $path ) : Neos\ContentRepository\Domain\Model\NodeInterface | Returns a node specified by the given absolute path. | |
getNodeByIdentifier ( string $identifier ) : Neos\ContentRepository\Domain\Model\NodeInterface | Get a node by identifier and this context | |
getNodeVariantsByIdentifier ( string $identifier ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface> | Get all node variants for the given identifier | |
getNodesOnPath ( mixed $startingPoint, mixed $endPoint ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface> | Finds all nodes lying on the path specified by (and including) the given starting point and end point. | |
getProperties ( ) : array | Returns the properties of this context. | |
getRootNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface | Convenience method returns the root node for this context workspace. | |
getTargetDimensionValues ( ) : array | An indexed array of dimensions with a set of values that should be applied when updating or creating | |
getTargetDimensions ( ) : array | An indexed array of dimensions with a set of values that should be applied when updating or creating | |
getWorkspace ( boolean $createWorkspaceIfNecessary = true ) : |
Returns the current workspace. | |
getWorkspaceName ( ) : string | Returns the name of the workspace. | |
isInaccessibleContentShown ( ) : boolean | Tells if nodes which have access restrictions should be accessible through the Node API and queries even without the necessary roles / rights | |
isInvisibleContentShown ( ) : boolean | Tells if nodes which are usually invisible should be accessible through the Node API and queries | |
isRemovedContentShown ( ) : boolean | Tells if nodes which have their "removed" flag set should be accessible through the Node API and queries | |
validateWorkspace ( |
This method is called in order to check if a workspace is accessible. |
Method | Description | |
---|---|---|
emitAfterAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
emitBeforeAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
public __construct ( string $workspaceName, DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, boolean $invisibleContentShown, boolean $removedContentShown, boolean $inaccessibleContentShown ) | ||
$workspaceName | string | Name of the current workspace |
$currentDateTime | DateTimeInterface | The current date and time |
$dimensions | array | Array of dimensions with array of ordered values |
$targetDimensions | array | Array of dimensions used when creating / modifying content |
$invisibleContentShown | boolean | If invisible content should be returned in query results |
$removedContentShown | boolean | If removed content should be returned in query results |
$inaccessibleContentShown | boolean | If inaccessible content should be returned in query results |
public adoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $recursive = false ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | The node with a different context. If the context of the given node is the same as this context the operation will have no effect. |
$recursive | boolean | If TRUE also adopt all descendant nodes which are non-aggregate |
return | Neos\ContentRepository\Domain\Model\NodeInterface | A new or existing node that matches this context |
protected emitAfterAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
$context | ||
$recursive |
protected emitBeforeAdoptNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, |
||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
$context | ||
$recursive |
public getCurrentDateTime ( ) : DateTime | ||
return | DateTime | The current date and time - or a simulated version of it |
public getDimensions ( ) : array | ||
return | array |
public getFirstLevelNodeCache ( ) : |
||
return |
public getNodeByIdentifier ( string $identifier ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
$identifier | string | The identifier of a node |
return | Neos\ContentRepository\Domain\Model\NodeInterface | The node with the given identifier or NULL if no such node exists |
public getNodeVariantsByIdentifier ( string $identifier ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface> | ||
$identifier | string | The identifier of a node |
return | array<\Neos\ContentRepository\Domain\Model\NodeInterface> |
public getNodesOnPath ( mixed $startingPoint, mixed $endPoint ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface> | ||
$startingPoint | mixed | Either an absolute path or an actual node specifying the starting point, for example /sites/mysitecom |
$endPoint | mixed | Either an absolute path or an actual node specifying the end point, for example /sites/mysitecom/homepage/subpage |
return | array<\Neos\ContentRepository\Domain\Model\NodeInterface> |
public getProperties ( ) : array | ||
return | array |
public getRootNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface | ||
return | Neos\ContentRepository\Domain\Model\NodeInterface |
public getTargetDimensionValues ( ) : array | ||
return | array |
public getTargetDimensions ( ) : array | ||
return | array |
public getWorkspace ( boolean $createWorkspaceIfNecessary = true ) : |
||
$createWorkspaceIfNecessary | boolean | DEPRECATED: If enabled, creates a workspace with the configured name if it doesn't exist already. This option is DEPRECATED, create workspace explicitly instead. |
return | The workspace or NULL |
public getWorkspaceName ( ) : string | ||
return | string |
public isInaccessibleContentShown ( ) : boolean | ||
return | boolean |
public isInvisibleContentShown ( ) : boolean | ||
return | boolean |
public isRemovedContentShown ( ) : boolean | ||
return | boolean |
public validateWorkspace ( |
||
$workspace | The workspace to check | |
return | void |
protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory | ||
return | Neos\ContentRepository\Domain\Service\ContextFactoryInterface |
protected FirstLevelNodeCache,Neos\ContentRepository\Domain\Service\Cache $firstLevelNodeCache | ||
return |
protected bool $inaccessibleContentShown | ||
return | boolean |
protected bool $invisibleContentShown | ||
return | boolean |
protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository | ||
return |
protected NodeFactory,Neos\ContentRepository\Domain\Factory $nodeFactory | ||
return |
protected bool $removedContentShown | ||
return | boolean |
protected SystemLoggerInterface,Neos\Flow\Log $systemLogger | ||
return | Neos\Flow\Log\SystemLoggerInterface |
protected Workspace,Neos\ContentRepository\Domain\Model $workspace | ||
return |