32 if (!Loader::includeModule(
'dav'))
38 if (empty($params[
'event']))
42 if (empty($params[
'connection']))
44 $select[] =
'CONNECTION';
47 $statement = EventConnectionTable::query();
48 $statement->setSelect($select);
49 if (!empty($params[
'filter']))
51 $statement->setFilter($params[
'filter']);
54 $link = $statement->exec()->fetchObject() ?:
null;
60 $event = $params[
'event']
63 $connection = $params[
'connection']
68 ->setId($link->getId())
70 ->setConnection($connection)
71 ->setVendorEventId($link->getVendorEventId())
72 ->setLastSyncStatus($link->getSyncStatus())
73 ->setEntityTag($link->getEntityTag())
74 ->setVersion($link->getVersion())
75 ->setData($link->getData())