- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/xml.php
- Класс: CDataXMLNode
- Вызов: CDataXMLNode::decodeDataTypes
function decodeDataTypes($attrAsNodeDecode = false)
{
$result = array();
if (!$this->children)
{
$this->_SaveDataType_OnDecode($result, $this->name(), $this->textContent());
}
else
{
foreach ($this->children() as $child)
{
$cheese = $child->children();
if (!$cheese or !count($cheese))
{
$this->_SaveDataType_OnDecode($result, $child->name(), $child->textContent());
}
else
{
$cheresult = $child->decodeDataTypes();
if (is_array($cheresult))
$this->_SaveDataType_OnDecode($result, $child->name(), $cheresult);
}
}
}
if ($attrAsNodeDecode)
{
foreach ($this->getAttributes() as $child)
{
$this->_SaveDataType_OnDecode($result, $child->name(), $child->textContent());
}
}
return $result;
}