1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
dbfieldconverter.php
См. документацию.
1<?php
2
3namespace Bitrix\Location\Entity\Address\Converter;
4
5use Bitrix\Location\Entity;
6
13{
20 public static function convertToDbField(Entity\Address $address): array
21 {
22 $locationId = 0;
23
24 if ($location = $address->getLocation())
25 {
26 $locationId = $location->getId();
27 }
28
29 $latitude = $address->getLatitude();
30 $longitude = $address->getLongitude();
31
32 return [
33 'ID' => $address->getId(),
34 'LOCATION_ID' => $locationId,
35 'LANGUAGE_ID' => $address->getLanguageId(),
36 'LATITUDE' => $latitude === '' ? null : (float)$latitude,
37 'LONGITUDE' => $longitude === '' ? null : (float)$longitude,
38 ];
39 }
40}
static convertToDbField(Entity\Address $address)
Определения dbfieldconverter.php:20
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
Определения ufield.php:9
$location
Определения options.php:2729