public function PHPExcel_CachedObjectStorage_Wincache::__construct in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Wincache.php \PHPExcel_CachedObjectStorage_Wincache::__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/ Wincache.php, line 256
Class
- PHPExcel_CachedObjectStorage_Wincache
- PHPExcel_CachedObjectStorage_Wincache
Code
public function __construct(PHPExcel_Worksheet $parent, $arguments) {
$cacheTime = isset($arguments['cacheTime']) ? $arguments['cacheTime'] : 600;
if (is_null($this->_cachePrefix)) {
$baseUnique = $this
->_getUniqueID();
$this->_cachePrefix = substr(md5($baseUnique), 0, 8) . '.';
$this->_cacheTime = $cacheTime;
parent::__construct($parent);
}
}