Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
complex.php
1<?php
2
4
5use Bitrix\Calendar\Core;
6use Bitrix\Calendar\Internals\EO_Event;
7use Bitrix\Calendar\Internals\EO_Section;
9use Bitrix\Dav\Internals\EO_DavConnection;
10
14abstract class Complex extends Mapper
15{
22 protected function prepareConnection(EO_DavConnection $connectionEO): Sync\Connection\Connection
23 {
24 $connectionMapper = new Connection();
25 return $connectionMapper->getByEntityObject($connectionEO);
26 }
27
33 protected function prepareSection(EO_Section $sectionEO): Core\Section\Section
34 {
35 $sectionMapper = new Section();
36 return $sectionMapper->getByEntityObject($sectionEO);
37 }
38
44 protected function prepareEvent(EO_Event $eventEO): Core\Event\Event
45 {
46 $eventMapper = new Event();
47 return $eventMapper->getByEntityObject($eventEO);
48 }
49}
prepareSection(EO_Section $sectionEO)
Definition complex.php:33
prepareConnection(EO_DavConnection $connectionEO)
Definition complex.php:22
prepareEvent(EO_Event $eventEO)
Definition complex.php:44