/** * Constructor * * @param DOMNode $node * @param OpenDocument $document */ public function __construct(DOMNode $node, OpenDocument $document) { parent::__construct($node, $document); $this->allowedElements = array('OpenDocument_Span', 'OpenDocument_Hyperlink'); }
/** * Constructor * * @param DOMNode $node * @param OpenDocument $document */ public function __construct(DOMNode $node, OpenDocument $document) { parent::__construct($node, $document); $this->location = $node->getAttributeNS(OpenDocument::NS_XLINK, 'href'); $this->type = $node->getAttributeNS(OpenDocument::NS_XLINK, 'type'); $this->target = $node->getAttributeNS(OpenDocument::NS_OFFICE, 'target'); $this->name = $node->getAttributeNS(OpenDocument::NS_OFFICE, 'name'); $this->allowedElements = array('OpenDocument_Span'); }
/** * Constructor * * @param DOMNode $node * @param OpenDocument $document */ public function __construct(DOMNode $node, OpenDocument $document) { parent::__construct($node, $document); $this->level = $node->getAttributeNS(OpenDocument::NS_TEXT, 'outline-level'); $this->allowedElements = array('OpenDocument_Span', 'OpenDocument_Hyperlink'); }