You are here

public function FileBase::getCacheEntry in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/File/FileBase.php \Drupal\forena\File\FileBase::getCacheEntry()

Returns the cache entry based on a filename.

Parameters

string $filename: Name of file

Return value

object Metadata for file.

2 calls to FileBase::getCacheEntry()
FileBase::isCustom in src/File/FileBaseOld.php
FileBase::isOverriden in src/File/FileBaseOld.php

File

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

Class

FileBase

Namespace

Drupal\forena\File

Code

public function getCacheEntry($filename) {
  if (!$this->cache) {
    $this
      ->validateAllCache();
  }
  list($base_name, $ext) = explode('.', $filename, 2);
  $cache = $this->cache[$ext][$base_name];
  return $cache;
}