You are here

public function PHPExcel_CachedObjectStorage_PHPTemp::__construct in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/PHPTemp.php \PHPExcel_CachedObjectStorage_PHPTemp::__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/PHPTemp.php, line 186

Class

PHPExcel_CachedObjectStorage_PHPTemp
PHPExcel_CachedObjectStorage_PHPTemp

Code

public function __construct(PHPExcel_Worksheet $parent, $arguments) {
  $this->_memoryCacheSize = isset($arguments['memoryCacheSize']) ? $arguments['memoryCacheSize'] : '1MB';
  parent::__construct($parent);
  if (is_null($this->_fileHandle)) {
    $this->_fileHandle = fopen('php://temp/maxmemory:' . $this->_memoryCacheSize, 'a+');
  }
}