You are here

public function FileBase::__construct in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/File/FileBase.php \Drupal\forena\File\FileBase::__construct()

File

src/File/FileBaseOld.php, line 21
FileSystemBase.inc File toolbox for manipulating files contained tn the report directory.

Class

FileBase

Namespace

Drupal\forena\File

Code

public function __construct($default_directory, $include_directories, $extentions = array(), $use_includes = TRUE) {

  // Check to see if directory is writable
  $this->dir = $default_directory;
  $this->includes = $include_directories;
  $this->use_includes = $use_includes;
  $this->writable = is_writable($this->dir);
  $this->cached_extensions = $extentions;
  $this->cacheKey = 'forena:' . get_class($this);
}