• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entitybankdetail.php
  • Класс: Bitrix\Crm\EntityBankDetail
  • Вызов: EntityBankDetail::getRqFieldTitleMap
public function getRqFieldTitleMap()
{
	if (self::$rqFieldTitleMap === null)
	{
		$titleMap = array();
		$countryCodes = [];
		foreach ($this->getRqFieldsCountryMap() as $fieldName => $fieldCountryIds)
		{
			if (is_array($fieldCountryIds))
			{
				foreach ($fieldCountryIds as $countryId)
				{
					if (!isset($countryCodes[$countryId]))
					{
						$countryCodes[$countryId] = EntityPreset::getCountryCodeById($countryId);
					}
					$phraseId = "CRM_BANK_DETAIL_ENTITY_{$fieldName}_{$countryCodes[$countryId]}_FIELD";
					$phrase = static::getPhrase($phraseId, $countryId);
					$titleMap[$fieldName][$countryId] = ($phrase === null) ? '' : $phrase;
				}
			}
		}
		self::$rqFieldTitleMap = $titleMap;
	}

	return self::$rqFieldTitleMap;
}