PHP Класс Neos\Neos\Domain\Service\ContentContext

Наследование: extends Neos\ContentRepository\Domain\Service\Context
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

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

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

Защищенные методы

Метод Описание
hasAccessToBackend ( ) : boolean Is access to the neos backend granted by current authentications.

Описание методов

__construct() публичный метод

NOTE: This is for internal use only, you should use the ContextFactory for creating Context instances.
См. также: 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() публичный метод

Returns the current domain from this frontend context
public getCurrentDomain ( ) : Domain
Результат Neos\Neos\Domain\Model\Domain The current domain

getCurrentRenderingMode() публичный метод

public getCurrentRenderingMode ( ) : UserInterfaceMode
Результат Neos\Neos\Domain\Model\UserInterfaceMode

getCurrentSite() публичный метод

Returns the current site from this frontend context
public getCurrentSite ( ) : Site
Результат Neos\Neos\Domain\Model\Site The current site

getCurrentSiteNode() публичный метод

Returns the node of the current site.
public getCurrentSiteNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
Результат Neos\ContentRepository\Domain\Model\NodeInterface

getProperties() публичный метод

Returns the properties of this context.
public getProperties ( ) : array
Результат array

hasAccessToBackend() защищенный метод

Is access to the neos backend granted by current authentications.
protected hasAccessToBackend ( ) : boolean
Результат boolean

isInBackend() публичный метод

Returns TRUE while rendering backend (not live workspace and access to backend granted), FALSE otherwise
public isInBackend ( ) : boolean
Результат boolean

isLive() публичный метод

Returns TRUE if current context is live workspace, FALSE otherwise
public isLive ( ) : boolean
Результат boolean

Описание свойств

$currentDomain защищенное свойство

protected Domain,Neos\Neos\Domain\Model $currentDomain
Результат Neos\Neos\Domain\Model\Domain

$currentSite защищенное свойство

protected Site,Neos\Neos\Domain\Model $currentSite
Результат Neos\Neos\Domain\Model\Site

$currentSiteNode защищенное свойство

protected NodeInterface,Neos\ContentRepository\Domain\Model $currentSiteNode
Результат Neos\ContentRepository\Domain\Model\NodeInterface

$interfaceRenderModeService защищенное свойство

protected UserInterfaceModeService,Neos\Neos\Domain\Service $interfaceRenderModeService
Результат UserInterfaceModeService

$privilegeManager защищенное свойство

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Результат Neos\Flow\Security\Authorization\PrivilegeManagerInterface