Pusher
Table of Contents
Constants
- ADD_ACTIVITY_PULL_COMMAND = 'timeline_activity_add'
- ITEM_ACTION_COMMAND = 'timeline_item_action'
Methods
- __construct() : mixed
- isDetailsPageChannelActive() : bool
- prepareEntityPushTag() : string
- sendPullActionEvent() : void
- Send pull event with action to timeline
- sendPullEvent() : void
- Send pull event with history data model to timeline
Constants
ADD_ACTIVITY_PULL_COMMAND
public
mixed
ADD_ACTIVITY_PULL_COMMAND
= 'timeline_activity_add'
ITEM_ACTION_COMMAND
public
mixed
ITEM_ACTION_COMMAND
= 'timeline_item_action'
Methods
__construct()
public
__construct() : mixed
isDetailsPageChannelActive()
public
isDetailsPageChannelActive(ItemIdentifier $targetEntityIdentifier) : bool
Parameters
- $targetEntityIdentifier : ItemIdentifier
Return values
boolprepareEntityPushTag()
public
prepareEntityPushTag(int $targetEntityTypeId[, int $targetEntityId = null ]) : string
Parameters
- $targetEntityTypeId : int
- $targetEntityId : int = null
Return values
stringsendPullActionEvent()
Send pull event with action to timeline
public
sendPullActionEvent(int $targetEntityTypeId, int $targetEntityId, string $action[, array<string|int, mixed> $actionParams = [] ]) : void
Parameters
- $targetEntityTypeId : int
- $targetEntityId : int
- $action : string
- $actionParams : array<string|int, mixed> = []
sendPullEvent()
Send pull event with history data model to timeline
public
sendPullEvent(int $targetEntityTypeId, int $targetEntityId, string $command[, array<string|int, mixed>|null $historyDataModel = null ]) : void
Parameters
- $targetEntityTypeId : int
- $targetEntityId : int
- $command : string
- $historyDataModel : array<string|int, mixed>|null = null