3namespace Bitrix\Location\Entity\Location\Converter;
5use Bitrix\Location\Entity;
6use Bitrix\Location\Entity\Location;
31 'externalId' =>
$location->getExternalId(),
32 'sourceCode' =>
$location->getSourceCode(),
35 'languageId' =>
$location->getLanguageId(),
51 foreach ($fieldsValues as
$type => $value)
88 ->setId((
int)
$data[
'id'])
89 ->setCode((
string)
$data[
'code'])
90 ->setExternalId((
string)
$data[
'externalId'])
91 ->setSourceCode((
string)
$data[
'sourceCode'])
92 ->setType((
int)
$data[
'type'])
93 ->setName((
string)
$data[
'name'])
94 ->setLanguageId((
string)
$data[
'languageId'])
95 ->setLatitude((
string)
$data[
'latitude'])
96 ->setLongitude((
string)
$data[
'longitude']);
98 if(is_array(
$data[
'fieldCollection']))
100 foreach (
$data[
'fieldCollection'] as $itemType => $itemValue)
102 $result->setFieldValue($itemType, (
string)$itemValue);
static convertFieldsToArray(array $fieldsValues)
static convertToArray(Address $address, bool $convertLocation=true)
static convertToArray(Entity\Location $location)
static convertParentsToArray(Entity\Location\Parents $parents)
static convertFromArray(array $data)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)