Documentation

AddByUser

CPullStack::AddByUser(
   $recipientId, Array(
       'module_id' => 'test',
       'command' => 'check',
       'params' => Array(),
   )
);

This method sends messages to a specific user. Static method.

Parameters

Parameter Description Available from version
recipientId Message recipient
module_id Module that sends a command
command The command that will be processed via JS
params Any set of data that will be processed via JS

If a command needs to be sent to multiple of users, method must be executed in cycle. In such cases it is preferable to use CPullStack::AddByUsers in which the first parameter - array of users.



© «Bitrix24», 2001-2022
Up