/** * Handle a node * * Handle / transform a given node, and return the result of the * conversion. * * @param ezcDocumentElementVisitorConverter $converter * @param DOMElement $node * @param mixed $root * @return mixed */ public function handle(ezcDocumentElementVisitorConverter $converter, DOMElement $node, $root) { $id = $converter->appendLink($node->getAttribute('url')); $root .= $converter->visitChildren($node, '') . " [{$id}]"; return $root; }
/** * Handle a node * * Handle / transform a given node, and return the result of the * conversion. * * @param ezcDocumentElementVisitorConverter $converter * @param DOMElement $node * @param mixed $root * @return mixed */ public function handle(ezcDocumentElementVisitorConverter $converter, DOMElement $node, $root) { $root .= ' `' . $converter->visitChildren($node, '') . '`__'; $converter->appendLink($node->getAttribute('linked') . '_'); return $root; }