TimelineManager
Table of Contents
Methods
- getIgnoredEntityTypeIDs() : array<string|int, mixed>
- Get Entity Type ID that should be ignored in timeline
- prepareDisplayData() : mixed
- prepareItemDisplayData() : mixed
- resolveController() : Controller|null
- transferAssociation() : mixed
- Transfer events from old associated entity of one type to new entity of another type.
- transferOwnership() : mixed
- Unbind events from old entity of one type and bind them to new entity of another type.
Methods
getIgnoredEntityTypeIDs()
Get Entity Type ID that should be ignored in timeline
public
static getIgnoredEntityTypeIDs() : array<string|int, mixed>
Return values
array<string|int, mixed>prepareDisplayData()
public
static prepareDisplayData(array<string|int, mixed> &$items[, mixed $userID = 0 ][, mixed $userPermissions = null ][, bool $checkPermissions = true ][, array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $items : array<string|int, mixed>
- $userID : mixed = 0
- $userPermissions : mixed = null
- $checkPermissions : bool = true
- $params : array<string|int, mixed> = []
prepareItemDisplayData()
public
static prepareItemDisplayData(array<string|int, mixed> &$item) : mixed
Parameters
- $item : array<string|int, mixed>
resolveController()
public
static resolveController(array<string|int, mixed> $item) : Controller|null
Parameters
- $item : array<string|int, mixed>
Return values
Controller|nulltransferAssociation()
Transfer events from old associated entity of one type to new entity of another type.
public
static transferAssociation(int $oldEntityTypeID, int $oldEntityID, int $newEntityTypeID, int $newEntityID) : mixed
Parameters
- $oldEntityTypeID : int
-
Old Entity Type ID.
- $oldEntityID : int
-
Old Old Entity ID.
- $newEntityTypeID : int
-
New Entity Type ID.
- $newEntityID : int
-
New Entity ID.
Tags
transferOwnership()
Unbind events from old entity of one type and bind them to new entity of another type.
public
static transferOwnership(int $oldEntityTypeID, int $oldEntityID, int $newEntityTypeID, int $newEntityID) : mixed
Parameters
- $oldEntityTypeID : int
-
Old Entity Type ID.
- $oldEntityID : int
-
Old Old Entity ID.
- $newEntityTypeID : int
-
New Entity Type ID.
- $newEntityID : int
-
New Entity ID.