PHP Class Neos\Neos\EventLog\Domain\Model\NodeEvent

Inheritance: extends Event
Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
getCurrentSite ( ) : null | object Prevents invalid calls to the site respository in case the site data property is not available.

Method Details

__toString() public méthode

public __toString ( ) : string
Résultat string

getClosestAggregateNode() public static méthode

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
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

getCurrentSite() protected méthode

Prevents invalid calls to the site respository in case the site data property is not available.
protected getCurrentSite ( ) : null | object
Résultat null | object

getDocumentNode() public méthode

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
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

getDocumentNodeIdentifier() public méthode

Return the node identifier of the closest parent document node related to this event
public getDocumentNodeIdentifier ( ) : string
Résultat string

getNode() public méthode

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
Résultat Neos\ContentRepository\Domain\Model\NodeInterface

getNodeIdentifier() public méthode

Return the node identifier of the node this event relates to
public getNodeIdentifier ( ) : string
Résultat string

getWorkspaceName() public méthode

Return name of the workspace where the node event happened
public getWorkspaceName ( ) : string
Résultat string

isDocumentEvent() public méthode

public isDocumentEvent ( )

setNode() public méthode

Set the "context node" this operation was working on.
public setNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
Résultat void

setWorkspaceName() public méthode

Override the workspace name. *MUST* be called after setNode(), else it won't have an effect.
public setWorkspaceName ( string $workspaceName ) : void
$workspaceName string
Résultat void

Property Details

$contextFactory protected_oe property

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
Résultat Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$dimension protected_oe property

the dimension values for that event
protected array $dimension
Résultat array

$documentNodeIdentifier protected_oe property

the document node identifier on which the action took place. is equal to NodeIdentifier if the action happened on documentNodes
protected string $documentNodeIdentifier
Résultat string

$nodeIdentifier protected_oe property

..
protected string $nodeIdentifier
Résultat string

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Résultat Neos\Flow\Persistence\PersistenceManagerInterface

$siteRepository protected_oe property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Résultat Neos\Neos\Domain\Repository\SiteRepository

$userService protected_oe property

protected UserService,Neos\Neos\Service $userService
Résultat Neos\Neos\Service\UserService

$workspaceName protected_oe property

the workspace name where the action took place
protected string $workspaceName
Résultat string