|
|
@ -426,17 +426,36 @@ class ObjectHelper { |
|
|
|
$rows = array(); |
|
|
|
$rows = array(); |
|
|
|
foreach ($simplexml->getNamespaces(TRUE) as $ns) { |
|
|
|
foreach ($simplexml->getNamespaces(TRUE) as $ns) { |
|
|
|
foreach ($simplexml->children($ns) as $child) { |
|
|
|
foreach ($simplexml->children($ns) as $child) { |
|
|
|
|
|
|
|
$data = array(); |
|
|
|
|
|
|
|
$rendered_data = ''; |
|
|
|
|
|
|
|
if ($grand_children = $child->children()) { |
|
|
|
|
|
|
|
foreach($grand_children as $grand_child) { |
|
|
|
|
|
|
|
$data[] = $grand_child->tagName() . ' = ' . (string)$grand_child; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
$rendered_data = (string)$child; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($data) { |
|
|
|
|
|
|
|
$rendered_data = theme('item_list', $data); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($rendered_data) { |
|
|
|
$rows[] = array( |
|
|
|
$rows[] = array( |
|
|
|
array( |
|
|
|
array( |
|
|
|
'data' => $child->getName(), |
|
|
|
'data' => $child->getName(), |
|
|
|
'class' => 'dc-tag-name', |
|
|
|
'class' => 'dc-tag-name', |
|
|
|
), |
|
|
|
), |
|
|
|
array( |
|
|
|
array( |
|
|
|
'data' => (string)$child, |
|
|
|
'data' => $rendered_data, |
|
|
|
'class' => 'dc-content', |
|
|
|
'class' => 'dc-content', |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return theme('table', $headers, $rows, array('class' => 'dc-table')); |
|
|
|
return theme('table', $headers, $rows, array('class' => 'dc-table')); |
|
|
|