Horde_Pear_Package_Xml_Element_Directory::getDirectoryNode PHP Method

getDirectoryNode() public method

Get the DOM node of the directory entry.
public getDirectoryNode ( ) : DOMNode
return DOMNode The directory node.
    public function getDirectoryNode()
    {
        if ($this->_dir === null) {
            throw new Horde_Pear_Exception('The directory node has been left undefined!');
        }
        return $this->_dir;
    }

Usage Example

Example #1
0
 /**
  * Remove the file entry from the XML.
  *
  * @return NULL
  */
 public function delete()
 {
     $file = $this->getFileNode();
     $dir = $this->_parent->getDirectoryNode();
     $this->_xml->removeWhitespace($file->previousSibling);
     $dir->removeChild($file);
 }
All Usage Examples Of Horde_Pear_Package_Xml_Element_Directory::getDirectoryNode