write( $actionSub . ' (' . $id . ')', $fileSub ); } } public static function getCountryList() { $server = Context::getCurrent()->getServer()->getDocumentRoot(); $countryList = []; if (file_exists($server . '/bitrix/modules/intaro.retailcrm/classes/general/config/country.xml')) { $countryFile = simplexml_load_file($server . '/bitrix/modules/intaro.retailcrm/classes/general/config/country.xml'); foreach ($countryFile->country as $country) { $countryList[RCrmActions::fromJSON((string) $country->name)] = (string) $country->alpha; } } return $countryList; } }