public function FileBase::includeExists in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/File/FileBaseOld.php \Drupal\forena\File\FileBase::includeExists()
Determine if the file exists in the include path.
Parameters
$file:
1 call to FileBase::includeExists()
- FileBase::revert in src/File/ FileBase.php 
- Revert an individual report
File
- src/File/ FileBase.php, line 254 
- FileBase.inc File toolbox for manipulating files contained tn the report directory.
Class
Namespace
Drupal\forena\FileCode
public function includeExists($file) {
  $found = false;
  $i = 0;
  while (isset($this->includes[$i]) && !$found) {
    $filename = $this->includes[$i] . '/' . $file;
    if (file_exists($this->includes[$i] . '/' . $file)) {
      $found = TRUE;
    }
    $i++;
  }
  return $found;
}