public function FrxFile::directory in Forena Reports 7.3
Same name and namespace in other branches
- 7.4 FrxFile.inc \FrxFile::directory()
Return the directory portioin of a report filename.
Parameters
unknown_type $filename:
File
- ./
FrxFile.inc, line 34 - 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, -2));
if (!$name_part) {
$name_part = $dir;
$dir = '';
}
return $this->dir . '/' . $dir;
}