PHP 클래스 Neos\Neos\EventLog\Domain\Model\Event

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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