public function getDirectoryNode() { if ($this->_dir === null) { throw new Horde_Pear_Exception('The directory node has been left undefined!'); } return $this->_dir; }
/** * 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); }