- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/lib/schedulerevent.php
- Класс: BitrixBizprocSchedulerEventTable
- Вызов: SchedulerEventTable::isSubscribed
static function isSubscribed($workflowId, $handler, $eventModule, $eventType, $entityId = null)
{
$filter = array(
'=WORKFLOW_ID' => (string)$workflowId,
'=HANDLER' => (string)$handler,
'=EVENT_MODULE' => (string)$eventModule,
'=EVENT_TYPE' => (string)$eventType
);
if ($entityId !== null)
$filter['=ENTITY_ID'] = (string)$entityId;
$row = static::getList(array(
'select' => array('ID'),
'filter' => $filter
))->fetch();
return (is_array($row));
}