public function FileBase::path in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/File/FileBaseOld.php \Drupal\forena\File\FileBase::path()
Return the full path to the filename
Parameters
$filename:
3 calls to FileBase::path()
- FileBase::contents in src/
File/ FileBase.php - Return the contents of a file located in the report directory
- FileBase::exists in src/
File/ FileBase.php - Return whether the file exists.
- FileBase::pathinfo in src/
File/ FileBase.php - Retrieve path info
1 method overrides FileBase::path()
- DataFile::path in src/
File/ DataFile.php - Return the full path to the filename
File
- src/
File/ FileBase.php, line 271 - FileBase.inc File toolbox for manipulating files contained tn the report directory.
Class
Namespace
Drupal\forena\FileCode
public function path($filename, $use_include = TRUE) {
$path = $this->dir . '/' . $filename;
if ($use_include && !file_exists($path)) {
foreach ($this->includes as $dir) {
if (file_exists($dir . '/' . $filename)) {
$path = $dir . '/' . $filename;
}
}
}
return $path;
}