EventHistory
Table of Contents
Constants
- EVENT_TYPE_DELETE = 5
- EVENT_TYPE_EMAIL = 2
- EVENT_TYPE_EXPORT = 4
- EVENT_TYPE_LINK = 7
- EVENT_TYPE_MERGER = 6
- EVENT_TYPE_UNLINK = 8
- EVENT_TYPE_UPDATE = 1
- EVENT_TYPE_USER = 0
- EVENT_TYPE_VIEW = 3
Methods
- __construct() : mixed
- getAllEventTypeCaptions() : array<int, string>
- getEventTypeCaption() : string
- registerBind() : Result
- registerDelete() : Result
- Creates a new 'delete' record in the EventsTable for the provided object
- registerExport() : Result
- registerUnbind() : Result
- registerUpdate() : Result
- Creates a new 'update' record in the EventsTable. The objects are compared and found differences are registered.
- registerView() : Result
- Creates a new 'view' record in the EventsTable for the provided object
Constants
EVENT_TYPE_DELETE
public
mixed
EVENT_TYPE_DELETE
= 5
EVENT_TYPE_EMAIL
public
mixed
EVENT_TYPE_EMAIL
= 2
EVENT_TYPE_EXPORT
public
mixed
EVENT_TYPE_EXPORT
= 4
EVENT_TYPE_LINK
public
mixed
EVENT_TYPE_LINK
= 7
EVENT_TYPE_MERGER
public
mixed
EVENT_TYPE_MERGER
= 6
EVENT_TYPE_UNLINK
public
mixed
EVENT_TYPE_UNLINK
= 8
EVENT_TYPE_UPDATE
public
mixed
EVENT_TYPE_UPDATE
= 1
EVENT_TYPE_USER
public
mixed
EVENT_TYPE_USER
= 0
EVENT_TYPE_VIEW
public
mixed
EVENT_TYPE_VIEW
= 3
Methods
__construct()
public
__construct() : mixed
getAllEventTypeCaptions()
public
getAllEventTypeCaptions() : array<int, string>
Return values
array<int, string>getEventTypeCaption()
public
getEventTypeCaption(int $eventType) : string
Parameters
- $eventType : int
Return values
stringregisterBind()
public
final registerBind(TrackedObject $parent, TrackedObject $child[, Context $context = null ]) : Result
Parameters
- $parent : TrackedObject
- $child : TrackedObject
- $context : Context = null
Return values
ResultregisterDelete()
Creates a new 'delete' record in the EventsTable for the provided object
public
registerDelete(TrackedObject $trackedObject[, Context|null $context = null ]) : Result
Parameters
- $trackedObject : TrackedObject
- $context : Context|null = null
Return values
ResultregisterExport()
public
registerExport(TrackedObject $trackedObject[, Context $context = null ]) : Result
Parameters
- $trackedObject : TrackedObject
- $context : Context = null
Return values
ResultregisterUnbind()
public
final registerUnbind(TrackedObject $parent, TrackedObject $child[, Context $context = null ]) : Result
Parameters
- $parent : TrackedObject
- $child : TrackedObject
- $context : Context = null
Return values
ResultregisterUpdate()
Creates a new 'update' record in the EventsTable. The objects are compared and found differences are registered.
public
registerUpdate(TrackedObject $trackedObject[, Context|null $context = null ]) : Result
Parameters
- $trackedObject : TrackedObject
- $context : Context|null = null
Return values
ResultregisterView()
Creates a new 'view' record in the EventsTable for the provided object
public
registerView(TrackedObject $trackedObject[, Context|null $context = null ]) : Result
Parameters
- $trackedObject : TrackedObject
- $context : Context|null = null