• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/driver.php
  • Класс: BitrixDiskDriver
  • Вызов: Driver::sendNotify
public function sendNotify($toUserId, array $dataNotify)
{
	if(! (ModuleManager::isModuleInstalled('im') && Loader::includeModule('im')) )
	{
		return false;
	}
	$dataNotify['NOTIFY_MODULE'] = self::INTERNAL_MODULE_ID;
	$dataNotify['TO_USER_ID'] = $toUserId;
	switch($dataNotify['NOTIFY_TYPE'])
	{
		case 'IM_NOTIFY_FROM':
			$dataNotify['NOTIFY_TYPE'] = IM_NOTIFY_FROM;
			break;
		case 'IM_NOTIFY_CONFIRM':
			$dataNotify['NOTIFY_TYPE'] = IM_NOTIFY_CONFIRM;
			break;
		default:
			$dataNotify['NOTIFY_TYPE'] = IM_NOTIFY_FROM;
	}
	;

	return (bool) CIMNotify::add($dataNotify);
}