PHP Class Neos\Neos\Domain\Service\ContentContext

Inheritance: extends Neos\ContentRepository\Domain\Service\Context
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$currentDomain Neos\Neos\Domain\Model\Domain
$currentSite Neos\Neos\Domain\Model\Site
$currentSiteNode Neos\ContentRepository\Domain\Model\NodeInterface
$interfaceRenderModeService UserInterfaceModeService
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface

Méthodes publiques

Méthode Description
__construct ( string $workspaceName, DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, boolean $invisibleContentShown, boolean $removedContentShown, boolean $inaccessibleContentShown, Site $currentSite = null, Domain $currentDomain = null ) Creates a new Content Context object.
getCurrentDomain ( ) : Domain Returns the current domain from this frontend context
getCurrentRenderingMode ( ) : UserInterfaceMode
getCurrentSite ( ) : Site Returns the current site from this frontend context
getCurrentSiteNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the node of the current site.
getProperties ( ) : array Returns the properties of this context.
isInBackend ( ) : boolean Returns TRUE while rendering backend (not live workspace and access to backend granted), FALSE otherwise
isLive ( ) : boolean Returns TRUE if current context is live workspace, FALSE otherwise

Méthodes protégées

Méthode Description
hasAccessToBackend ( ) : boolean Is access to the neos backend granted by current authentications.

Method Details

__construct() public méthode

NOTE: This is for internal use only, you should use the ContextFactory for creating Context instances.
See also: ContextFactoryInterface
public __construct ( string $workspaceName, DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, boolean $invisibleContentShown, boolean $removedContentShown, boolean $inaccessibleContentShown, Site $currentSite = null, Domain $currentDomain = null )
$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
$currentSite Neos\Neos\Domain\Model\Site The current Site object
$currentDomain Neos\Neos\Domain\Model\Domain The current Domain object

getCurrentDomain() public méthode

Returns the current domain from this frontend context
public getCurrentDomain ( ) : Domain
Résultat Neos\Neos\Domain\Model\Domain The current domain

getCurrentRenderingMode() public méthode

public getCurrentRenderingMode ( ) : UserInterfaceMode
Résultat Neos\Neos\Domain\Model\UserInterfaceMode

getCurrentSite() public méthode

Returns the current site from this frontend context
public getCurrentSite ( ) : Site
Résultat Neos\Neos\Domain\Model\Site The current site

getCurrentSiteNode() public méthode

Returns the node of the current site.
public getCurrentSiteNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

getProperties() public méthode

Returns the properties of this context.
public getProperties ( ) : array
Résultat array

hasAccessToBackend() protected méthode

Is access to the neos backend granted by current authentications.
protected hasAccessToBackend ( ) : boolean
Résultat boolean

isInBackend() public méthode

Returns TRUE while rendering backend (not live workspace and access to backend granted), FALSE otherwise
public isInBackend ( ) : boolean
Résultat boolean

isLive() public méthode

Returns TRUE if current context is live workspace, FALSE otherwise
public isLive ( ) : boolean
Résultat boolean

Property Details

$currentDomain protected_oe property

protected Domain,Neos\Neos\Domain\Model $currentDomain
Résultat Neos\Neos\Domain\Model\Domain

$currentSite protected_oe property

protected Site,Neos\Neos\Domain\Model $currentSite
Résultat Neos\Neos\Domain\Model\Site

$currentSiteNode protected_oe property

protected NodeInterface,Neos\ContentRepository\Domain\Model $currentSiteNode
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

$interfaceRenderModeService protected_oe property

protected UserInterfaceModeService,Neos\Neos\Domain\Service $interfaceRenderModeService
Résultat UserInterfaceModeService

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Résultat Neos\Flow\Security\Authorization\PrivilegeManagerInterface