Documentation

Pusher

\Bitrix\Crm\Timeline\Pusher is a simple service, with objective of sending push events about timeline updates.


Class methods

Main method: sendPullEvent.

sendPullEvent(
    int $targetEntityTypeId,
    int $targetEntityId,
    string $command,
    array $historyDataModel = null
): void
ParameterDescriptionVersion
int $targetEntityTypeIdConstant \CCrmOwnerType, for example \CCrmOwnerType::Lead. Defines type of element entity type, which timeline will receive a dispatched event.
int $targetEntityIdelement ID, which timeline will receive a dispatched event.
string $commandCommand annotating how to process a sent event. Can be both constant Pusher, and any arbitrary command.
array $historyDataModel = nullArray with data for displaying event at the frontend. By default, no data is sent for displaying at the frontend.


© «Bitrix24», 2001-2024
Up