public function FileBase::directory in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/File/FileBase.php \Drupal\forena\File\FileBase::directory()
Return the directory portion of a report filename.
Parameters
string $filename:
Return value
string Directory containing the file.
File
- src/
File/ FileBaseOld.php, line 290 - FileSystemBase.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;
}