public function FileBase::directory in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/File/FileBaseOld.php \Drupal\forena\File\FileBase::directory()
Return the directory portioin of a report filename.
Parameters
unknown_type $filename:
File
- src/
File/ FileBase.php, line 287 - FileBase.inc File toolbox for manipulating files contained tn the report directory.
Class
Namespace
Drupal\forena\FileCode
public function directory($filename) {
@(list($dir, $name_part) = explode('/', $filename, -1));
return $this->dir . '/' . $dir;
}