You are here

public function FrxFile::includeExists in Forena Reports 7.4

Determine if the file exists in the include path.

Parameters

$file:

1 call to FrxFile::includeExists()
FrxFile::revert in ./FrxFile.inc
Revert an individual report

File

./FrxFile.inc, line 252
FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Class

FrxFile
@file FrxFile.inc File toolbox for manipulating files contained tn the report directory.

Code

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;
}