You are here

public function FileSystemBase::getMetaData in Forena Reports 8

Returns the cache entry based on a filename.

Parameters

string $filename:

Return value

object

Overrides FileInterface::getMetaData

2 calls to FileSystemBase::getMetaData()
FileSystemBase::isCustom in src/File/FileSystemBase.php
Determine whether the file is a cusomt implmentation.
FileSystemBase::isOverriden in src/File/FileSystemBase.php
Test whether file is overriding code provided files.

File

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

Class

FileSystemBase

Namespace

Drupal\forena\File

Code

public function getMetaData($filename) {
  list($base_name, $ext) = explode('.', $filename, 2);
  $cache = isset($this->cache[$ext][$base_name]) ? $this->cache[$ext][$base_name] : null;
  return $cache;
}