PHP Class Neos\Neos\EventLog\Domain\Model\Event

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

Protected Properties

Свойство Type Description
$accountIdentifier string The identifier of the account that triggered this event. Optional.
$childEvents ArrayCollection Child events, of this event
$data array Payload of the event.
$eventType string What was this event about? Is a required string constant.
$parentEvent Event The parent event, if exists. E.g. if a "move node" operation triggered a bunch of other events, or a "publish"
$timestamp DateTime When was this event?
$uid integer We introduce an auto_increment column to be able to sort events at the same timestamp

Méthodes publiques

Méthode Description
__construct ( string $eventType, array $data, string $user = null, Event $parentEvent = null ) Create a new event
addChildEvent ( Event $childEvent ) : void Add a new child event. Is called from the child event's constructor.
getAccountIdentifier ( ) : string Return the identifier of the account (if any) which triggered this event
getChildEvents ( ) : array Return the child events (if any)
getData ( ) : array Return the payload of this event
getEventType ( ) : string Return the type of this event
getParentEvent ( ) : Event Return the parent event (if any)
getTimestamp ( ) : DateTime Return the timestamp of this event

Method Details

__construct() public méthode

Create a new event
public __construct ( string $eventType, array $data, string $user = null, Event $parentEvent = null )
$eventType string
$data array
$user string
$parentEvent Event

addChildEvent() public méthode

Add a new child event. Is called from the child event's constructor.
public addChildEvent ( Event $childEvent ) : void
$childEvent Event
Résultat void

getAccountIdentifier() public méthode

Return the identifier of the account (if any) which triggered this event
public getAccountIdentifier ( ) : string
Résultat string

getChildEvents() public méthode

Return the child events (if any)
public getChildEvents ( ) : array
Résultat array

getData() public méthode

Return the payload of this event
public getData ( ) : array
Résultat array

getEventType() public méthode

Return the type of this event
public getEventType ( ) : string
Résultat string

getParentEvent() public méthode

Return the parent event (if any)
public getParentEvent ( ) : Event
Résultat Event

getTimestamp() public méthode

Return the timestamp of this event
public getTimestamp ( ) : DateTime
Résultat DateTime

Property Details

$accountIdentifier protected_oe property

The identifier of the account that triggered this event. Optional.
protected string $accountIdentifier
Résultat string

$childEvents protected_oe property

Child events, of this event
protected ArrayCollection $childEvents
Résultat ArrayCollection

$data protected_oe property

Payload of the event.
protected array $data
Résultat array

$eventType protected_oe property

What was this event about? Is a required string constant.
protected string $eventType
Résultat string

$parentEvent protected_oe property

The parent event, if exists. E.g. if a "move node" operation triggered a bunch of other events, or a "publish"
protected Event,Neos\Neos\EventLog\Domain\Model $parentEvent
Résultat Event

$timestamp protected_oe property

When was this event?
protected DateTime $timestamp
Résultat DateTime

$uid protected_oe property

We introduce an auto_increment column to be able to sort events at the same timestamp
protected int $uid
Résultat integer