public function PHPExcel_CachedObjectStorage_APC::__construct in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php \PHPExcel_CachedObjectStorage_APC::__construct()
Initialise this new cell collection
Parameters
PHPExcel_Worksheet $parent The worksheet for this cell collection:
array of mixed $arguments Additional initialisation arguments:
Overrides PHPExcel_CachedObjectStorage_CacheBase::__construct
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ APC.php, line 254
Class
- PHPExcel_CachedObjectStorage_APC
- PHPExcel_CachedObjectStorage_APC
Code
public function __construct(PHPExcel_Worksheet $parent, $arguments) {
$cacheTime = isset($arguments['cacheTime']) ? $arguments['cacheTime'] : 600;
if ($this->_cachePrefix === NULL) {
$baseUnique = $this
->_getUniqueID();
$this->_cachePrefix = substr(md5($baseUnique), 0, 8) . '.';
$this->_cacheTime = $cacheTime;
parent::__construct($parent);
}
}