Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Gunnar Wrobel (wrobel@pardus.de)
예제 #1
0
파일: Contents.php 프로젝트: horde/horde
 /**
  * Delete a file from the list.
  *
  * @param string $file The file name.
  *
  * @return NULL
  */
 public function delete($file)
 {
     $this->_dir_list->deleteFile($file);
     if (isset($this->_install_list[$file])) {
         $this->_xml->removeWhitespace($this->_install_list[$file]->nextSibling);
         $this->_filelist->removeChild($this->_install_list[$file]);
     }
 }
예제 #2
0
파일: Directory.php 프로젝트: Gomez/horde
 /**
  * Prune this directory if it is empty.
  *
  * @return NULL
  */
 private function _prune()
 {
     if (empty($this->_files) && empty($this->_subdirectories)) {
         $this->_element->delete();
         if ($this->_parent instanceof Horde_Pear_Package_Xml_Directory) {
             $this->_parent->_deleteSubdirectory($this->_element->getName());
         }
     }
 }