You are here

protected function FileSystemBase::allMetadataForExt in Forena Reports 8

Get all metadata for files of a specific extension.

Parameters

$ext: File extension being retrieved

Return value

array Array of metadata entries keyed by base filename.

2 calls to FileSystemBase::allMetadataForExt()
ReportFileSystem::allReports in src/File/ReportFileSystem.php
List all the reports for a language.
ReportFileSystem::skins in src/File/ReportFileSystem.php

File

src/File/FileSystemBase.php, line 275
FileSystemBase.inc File toolbox for manipulating files contained tn the report directory.

Class

FileSystemBase

Namespace

Drupal\forena\File

Code

protected function allMetadataForExt($ext) {
  if (isset($this->cache[$ext])) {
    return $this->cache[$ext];
  }
  else {
    return [];
  }
}