Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
identifiereventhandler.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Handlers
;
4
5
6
use
Bitrix\Calendar\Core\Base\Collection
;
7
use
Bitrix\Calendar\Sync\Entities\SyncEventMap
;
8
use
Bitrix\Calendar\Internals\EventConnectionTable
;
9
10
class
IdentifierEventHandler
extends
HandlerBase
11
{
12
private
Collection
$collection;
13
14
public
function
__construct
(
SyncEventMap
$collection)
15
{
16
$this->collection = $collection;
17
}
18
24
public
function
__invoke
(): array
25
{
26
return
EventConnectionTable::query
()
27
->whereIn(
'VENDOR_EVENT_ID'
, array_keys($this->collection->getCollection()))
28
->setSelect([
'VENDOR_EVENT_ID'
,
'ENTITY_TAG'
])
29
->exec()
30
->fetchAll()
31
;
32
}
33
}
Bitrix\Calendar\Core\Base\Collection
Definition
collection.php:10
Bitrix\Calendar\Core\Handlers\HandlerBase
Definition
handlerbase.php:7
Bitrix\Calendar\Core\Handlers\IdentifierEventHandler
Definition
identifiereventhandler.php:11
Bitrix\Calendar\Core\Handlers\IdentifierEventHandler\__invoke
__invoke()
Definition
identifiereventhandler.php:24
Bitrix\Calendar\Core\Handlers\IdentifierEventHandler\__construct
__construct(SyncEventMap $collection)
Definition
identifiereventhandler.php:14
Bitrix\Calendar\Internals\EventConnectionTable
Definition
eventconnectiontable.php:34
Bitrix\Calendar\Sync\Entities\SyncEventMap
Definition
synceventmap.php:12
Bitrix\Main\ORM\Data\DataManager\query
static query()
Definition
datamanager.php:559
Bitrix\Calendar\Core\Handlers
Definition
handlerbase.php:3
modules
calendar
lib
core
handlers
identifiereventhandler.php
Создано системой
1.10.0