public function DataFile::path in Forena Reports 7.5
Return the full path to the filename
Parameters
$filename:
Overrides FileBase::path
File
- src/
File/ DataFile.php, line 67
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 $prefix => $dir) {
if (strpos($filename, $prefix) === 0) {
$inc_file = substr($filename, strlen($prefix) + 1);
if (file_exists($dir . '/' . $inc_file)) {
$path = $dir . '/' . $inc_file;
}
}
}
}
return $path;
}