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
Parameter | Description | Version |
---|---|---|
int $targetEntityTypeId | Constant \CCrmOwnerType , for example \CCrmOwnerType::Lead . Defines type of element entity type, which timeline will receive a dispatched event. | |
int $targetEntityId | element ID, which timeline will receive a dispatched event. | |
string $command | Command annotating how to process a sent event. Can be both constant Pusher , and any arbitrary command. | |
array $historyDataModel = null | Array with data for displaying event at the frontend. By default, no data is sent for displaying at the frontend. |
© «Bitrix24», 2001-2024