Horde_Xml_Element::getDom PHP Method

getDom() public method

Returns the underlying DOM object, which can then be manipulated with full DOM methods.
public getDom ( ) : DOMElement
return DOMElement
    public function getDom()
    {
        return $this->_element;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Appends this element to its parent if necessary.
  *
  * @internal
  */
 protected function _ensureAppended()
 {
     if (!$this->_appended) {
         $parentDom = $this->_parentElement->getDom();
         if (!$parentDom->ownerDocument->isSameNode($this->_element->ownerDocument)) {
             $this->_element = $parentDom->ownerDocument->importNode($this->_element, true);
         }
         $parentDom->appendChild($this->_element);
         $this->_appended = true;
         $this->_parentElement->_ensureAppended();
     }
 }