3namespace Bitrix\Location\Entity;
5use Bitrix\Location\Entity\Address\FieldType;
6use Bitrix\Location\Entity\Format\Converter\ArrayConverter;
7use Bitrix\Location\Entity\Format\FieldCollection;
8use Bitrix\Location\Entity\Format\Template;
9use Bitrix\Location\Entity\Format\TemplateCollection;
10use Bitrix\Location\Entity\Format\TemplateType;
11use Bitrix\Main\Web\Json;
22 private $description =
'';
28 private $delimiter =
'';
30 private $fieldForUnRecognized = FieldType::UNKNOWN;
32 private $fieldCollection;
34 private $templateCollection;
42 $this->languageId = $languageId;
79 $this->description = $description;
88 return $this->languageId;
97 $this->languageId = $languageId;
126 $this->fieldCollection = $fieldCollection;
136 return $this->fieldCollection;
147 return Json::encode(ArrayConverter::convertToArray($this));
165 return $this->templateCollection;
174 $this->templateCollection = $templateCollection;
183 return $this->delimiter;
192 $this->delimiter = $delimiter;
202 $this->fieldForUnRecognized = $fieldType;
211 return $this->fieldForUnRecognized;
if(Loader::includeModule( 'bitrix24')) elseif(Loader::includeModule('intranet') &&CIntranetUtils::getPortalZone() !=='ru') $description
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code