• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/phonenumber/tools/xmlparser.php
  • Класс: BitrixMainPhoneNumberToolsfor
  • Вызов: for::parseAttributes
protected function parseAttributes(XMLReader $xmlReader, $parentPath)
{
	$xmlReader->moveToFirstAttribute();

	do
	{
		$path = $parentPath . '@' . $xmlReader->localName;
		$field = $this->getField($path);

		if(!is_null($field))
		{
			$this->properties[$field->getName()] = $field->decodeValue($xmlReader->value);
		}
	} while(($xmlReader->moveToNextAttribute()));

	$xmlReader->moveToElement();
}