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

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

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

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

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

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

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

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

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() публичный Метод

Add a new child event. Is called from the child event's constructor.
public addChildEvent ( Event $childEvent ) : void
$childEvent Event
Результат void

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

Return the identifier of the account (if any) which triggered this event
public getAccountIdentifier ( ) : string
Результат string

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

Return the child events (if any)
public getChildEvents ( ) : array
Результат array

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

Return the payload of this event
public getData ( ) : array
Результат array

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

Return the type of this event
public getEventType ( ) : string
Результат string

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

Return the parent event (if any)
public getParentEvent ( ) : Event
Результат Event

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

Return the timestamp of this event
public getTimestamp ( ) : DateTime
Результат DateTime

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

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

The identifier of the account that triggered this event. Optional.
protected string $accountIdentifier
Результат string

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

Child events, of this event
protected ArrayCollection $childEvents
Результат ArrayCollection

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

Payload of the event.
protected array $data
Результат array

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

What was this event about? Is a required string constant.
protected string $eventType
Результат string

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

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
Результат Event

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

When was this event?
protected DateTime $timestamp
Результат DateTime

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

We introduce an auto_increment column to be able to sort events at the same timestamp
protected int $uid
Результат integer