Parse properties of links in XRD files

This commit is contained in:
Evan Prodromou 2011-01-03 07:41:13 -08:00
parent 8653d8a252
commit fd7dd9b10f

View File

@ -173,6 +173,13 @@ class XRD
switch($node->tagName) {
case 'Title':
$link['title'][] = $node->nodeValue;
break;
case 'Property':
$link['property'][] = array('type' => $node->getAttribute('type'),
'value' => $node->nodeValue);
break;
default:
common_log(LOG_NOTICE, "Unexpected tag name {$node->tagName} found in XRD file.");
}
}
}