You are here

public function PHPExcel_CachedObjectStorage_DiscISAM::__construct in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/DiscISAM.php \PHPExcel_CachedObjectStorage_DiscISAM::__construct()

* Initialise this new cell collection * *

Parameters

PHPExcel_Worksheet $parent The worksheet for this cell collection: * @param array of mixed $arguments Additional initialisation arguments

Overrides PHPExcel_CachedObjectStorage_CacheBase::__construct

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/DiscISAM.php, line 194

Class

PHPExcel_CachedObjectStorage_DiscISAM
PHPExcel_CachedObjectStorage_DiscISAM

Code

public function __construct(PHPExcel_Worksheet $parent, $arguments) {
  $this->_cacheDirectory = isset($arguments['dir']) && $arguments['dir'] !== NULL ? $arguments['dir'] : PHPExcel_Shared_File::sys_get_temp_dir();
  parent::__construct($parent);
  if (is_null($this->_fileHandle)) {
    $baseUnique = $this
      ->_getUniqueID();
    $this->_fileName = $this->_cacheDirectory . '/PHPExcel.' . $baseUnique . '.cache';
    $this->_fileHandle = fopen($this->_fileName, 'a+');
  }
}