imagegallery-lite/vendors/novaGallery.php
// create array of files or dirs without path & with last modification date
create array of files or dirs without path & with last modification date
create array of files or dirs without path & with last modification date
protected function fileList($list, $withCaptureDate = false){
    $fileList = array();
    foreach ($list as $element) {
      if($withCaptureDate){ 
        $value = $this->getImageCaptureDate($element);
      } else {
        $value = array(); 
      }
      $element = strrchr($element, '/');
      $element = substr($element, 1);
      $fileList[$element] = $value;
    }
    return $fileList;
  }
protected function fileList ( $ list , $ withCaptureDate = false ) { $ fileList = array ( ) ; foreach ( $ list as $ element ) { if ( $ withCaptureDate ) { $ value = $ this -> getImageCaptureDate ( $ element ) ; } else { $ value = array ( ) ; } $ element = strrchr ( $ element , '/' ) ; $ element = substr ( $ element , 1 ) ; $ fileList [ $ element ] = $ value ; } return $ fileList ; }
create array of files or dirs without path & with last modification date
create array of files or dirs without path & with last modification date
// add modification date if requested // else add as array for sub files