PHP Класс Neos\Neos\EventLog\Domain\Model\NodeEvent

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

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

Свойство Тип Описание
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$dimension array the dimension values for that event
$documentNodeIdentifier string the document node identifier on which the action took place. is equal to NodeIdentifier if the action happened on documentNodes
$nodeIdentifier string ..
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$userService Neos\Neos\Service\UserService
$workspaceName string the workspace name where the action took place

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

Метод Описание
__toString ( ) : string
getClosestAggregateNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the closest aggregate node of the given node
getDocumentNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the closest document node, if it can be resolved.
getDocumentNodeIdentifier ( ) : string Return the node identifier of the closest parent document node related to this event
getNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the node this even refers to, if it can be resolved.
getNodeIdentifier ( ) : string Return the node identifier of the node this event relates to
getWorkspaceName ( ) : string Return name of the workspace where the node event happened
isDocumentEvent ( )
setNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Set the "context node" this operation was working on.
setWorkspaceName ( string $workspaceName ) : void Override the workspace name. *MUST* be called after setNode(), else it won't have an effect.

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

Метод Описание
getCurrentSite ( ) : null | object Prevents invalid calls to the site respository in case the site data property is not available.

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

__toString() публичный Метод

public __toString ( ) : string
Результат string

getClosestAggregateNode() публичный статический Метод

Returns the closest aggregate node of the given node
public static getClosestAggregateNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : Neos\ContentRepository\Domain\Model\NodeInterface
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат Neos\ContentRepository\Domain\Model\NodeInterface

getCurrentSite() защищенный Метод

Prevents invalid calls to the site respository in case the site data property is not available.
protected getCurrentSite ( ) : null | object
Результат null | object

getDocumentNode() публичный Метод

It might happen that, if this event refers to a node contained in a site which is not available anymore, Doctrine's proxy class of the Site domain model will fail with an EntityNotFoundException. We catch this case and return NULL.
public getDocumentNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
Результат Neos\ContentRepository\Domain\Model\NodeInterface

getDocumentNodeIdentifier() публичный Метод

Return the node identifier of the closest parent document node related to this event
public getDocumentNodeIdentifier ( ) : string
Результат string

getNode() публичный Метод

It might happen that, if this event refers to a node contained in a site which is not available anymore, Doctrine's proxy class of the Site domain model will fail with an EntityNotFoundException. We catch this case and return NULL.
public getNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
Результат Neos\ContentRepository\Domain\Model\NodeInterface

getNodeIdentifier() публичный Метод

Return the node identifier of the node this event relates to
public getNodeIdentifier ( ) : string
Результат string

getWorkspaceName() публичный Метод

Return name of the workspace where the node event happened
public getWorkspaceName ( ) : string
Результат string

isDocumentEvent() публичный Метод

public isDocumentEvent ( )

setNode() публичный Метод

Set the "context node" this operation was working on.
public setNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат void

setWorkspaceName() публичный Метод

Override the workspace name. *MUST* be called after setNode(), else it won't have an effect.
public setWorkspaceName ( string $workspaceName ) : void
$workspaceName string
Результат void

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

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

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
Результат Neos\ContentRepository\Domain\Service\ContextFactoryInterface

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

the dimension values for that event
protected array $dimension
Результат array

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

the document node identifier on which the action took place. is equal to NodeIdentifier if the action happened on documentNodes
protected string $documentNodeIdentifier
Результат string

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

..
protected string $nodeIdentifier
Результат string

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

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

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

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Результат Neos\Neos\Domain\Repository\SiteRepository

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

protected UserService,Neos\Neos\Service $userService
Результат Neos\Neos\Service\UserService

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

the workspace name where the action took place
protected string $workspaceName
Результат string