getFiles() public method

Return the list of files in this hierarchy.
public getFiles ( ) : array
return array The file list.
示例#1
0
文件: Contents.php 项目: horde/horde
 /**
  * Update the file list.
  *
  * @param array $files The new file list.
  *
  * @return NULL
  */
 public function update(Horde_Pear_Package_Contents $contents)
 {
     $files = $contents->getContents();
     $added = array_diff(array_keys($files), $this->_dir_list->getFiles());
     $deleted = array_diff($this->_dir_list->getFiles(), array_keys($files));
     foreach ($added as $file) {
         $this->add($file, $files[$file]);
     }
     foreach ($deleted as $file) {
         $this->delete($file);
     }
 }