You are here

public function FrxFile::directory in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.3 FrxFile.inc \FrxFile::directory()

Return the directory portioin of a report filename.

Parameters

unknown_type $filename:

File

./FrxFile.inc, line 285
FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Class

FrxFile
@file FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Code

public function directory($filename) {
  @(list($dir, $name_part) = explode('/', $filename, -1));
  return $this->dir . '/' . $dir;
}