@@ 225-237 (lines=13) @@ | ||
222 | { |
|
223 | $handlers = array(); |
|
224 | if ($node->handlers) { |
|
225 | foreach ($node->handlers->handler as $handlerNode) { |
|
226 | $params = array(); |
|
227 | if ($handlerNode->params->param) { |
|
228 | foreach ($handlerNode->params->param as $paramNode) { |
|
229 | $paramName = (string)$paramNode->attributes()->name; |
|
230 | $params[$paramName] = (string)array_shift($handlerNode->xpath(".//param[@name='$paramName']")); |
|
231 | } |
|
232 | } |
|
233 | $handlers[(string)$handlerNode->attributes()->extension] = array( |
|
234 | 'name' => (string)$handlerNode->attributes()->name, |
|
235 | 'params' => $params |
|
236 | ); |
|
237 | } |
|
238 | } |
|
239 | return $handlers; |
|
240 | } |
|
@@ 450-466 (lines=17) @@ | ||
447 | if ($node->analytics) { |
|
448 | foreach ($node->analytics->analytic as $analyticNode) { |
|
449 | $connectors = array(); |
|
450 | foreach ($analyticNode->connectors->connector as $connectorNode) { |
|
451 | // connectors might have params |
|
452 | $params = array(); |
|
453 | if ($connectorNode->params) { |
|
454 | foreach ($connectorNode->params->param as $paramNode) { |
|
455 | $paramName = (string)$paramNode->attributes()->name; |
|
456 | $params[$paramName] = (string)array_shift($connectorNode->xpath(".//param[@name='$paramName']")); |
|
457 | } |
|
458 | } |
|
459 | ||
460 | // build up the connectors entry |
|
461 | $connectors[] = array( |
|
462 | 'name' => (string)$connectorNode->attributes()->name, |
|
463 | 'type' => (string)$connectorNode->attributes()->type, |
|
464 | 'params' => $params |
|
465 | ); |
|
466 | } |
|
467 | ||
468 | // build up the analytics entry |
|
469 | $analytics[] = array( |