You are here

public function FileBase::__construct in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/File/FileBaseOld.php \Drupal\forena\File\FileBase::__construct()
2 calls to FileBase::__construct()
DataFile::__construct in src/File/DataFile.php
Constructor Sets the initial reort directory
ReportFile::__construct in src/File/ReportFile.php
Constructor Sets the initial reort directory
2 methods override FileBase::__construct()
DataFile::__construct in src/File/DataFile.php
Constructor Sets the initial reort directory
ReportFile::__construct in src/File/ReportFile.php
Constructor Sets the initial reort directory

File

src/File/FileBase.php, line 21
FileBase.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);
}