...Человеческий поиск в разработке...
- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/core/mappers/sectionconnection.php
- Класс: BitrixCalendarCoreMappersSectionConnection
- Вызов: SectionConnection::convertToObject
protected function convertToObject($objectEO): ?SyncConnectionSectionConnection { $section = $objectEO->getSection(); if ($section !== null) { $section = $this->prepareSection($section); } else { $objectEO->delete(); return null; } $connection = $objectEO->getConnection(); if ($connection !== null) { $connection = $this->prepareConnection($connection); } else { $objectEO->delete(); return null; } $item = new SyncConnectionSectionConnection(); $item ->setId($objectEO->getId()) ->setSection($section) ->setConnection($connection) ->setVendorSectionId($objectEO->getVendorSectionId()) ->setSyncToken($objectEO->getSyncToken()) ->setPageToken($objectEO->getPageToken()) ->setActive($objectEO->getActive()) ->setLastSyncDate(new CoreBaseDate($objectEO->getLastSyncDate())) ->setLastSyncStatus($objectEO->getLastSyncStatus()) ->setVersionId($objectEO->get('VERSION_ID')) ->setPrimary($objectEO->getIsPrimary()) ; return $item; }