protected function PHPExcel_CachedObjectStorage_Wincache::_storeData in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Wincache.php \PHPExcel_CachedObjectStorage_Wincache::_storeData()
Store cell data in cache for the current cell object if it's "dirty", and the 'nullify' the current cell object
*
Return value
void
Throws
3 calls to PHPExcel_CachedObjectStorage_Wincache::_storeData()
- PHPExcel_CachedObjectStorage_Wincache::addCacheData in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ Wincache.php - * Add or Update a cell in cache identified by coordinate address * *
- PHPExcel_CachedObjectStorage_Wincache::getCacheData in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ Wincache.php - * Get cell at a specific coordinate * *
- PHPExcel_CachedObjectStorage_Wincache::getCellList in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ Wincache.php - * Get a list of all cell addresses currently held in cache * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ Wincache.php, line 60
Class
- PHPExcel_CachedObjectStorage_Wincache
- PHPExcel_CachedObjectStorage_Wincache
Code
protected function _storeData() {
if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
$this->_currentObject
->detach();
$obj = serialize($this->_currentObject);
if (wincache_ucache_exists($this->_cachePrefix . $this->_currentObjectID . '.cache')) {
if (!wincache_ucache_set($this->_cachePrefix . $this->_currentObjectID . '.cache', $obj, $this->_cacheTime)) {
$this
->__destruct();
throw new PHPExcel_Exception('Failed to store cell ' . $this->_currentObjectID . ' in WinCache');
}
}
else {
if (!wincache_ucache_add($this->_cachePrefix . $this->_currentObjectID . '.cache', $obj, $this->_cacheTime)) {
$this
->__destruct();
throw new PHPExcel_Exception('Failed to store cell ' . $this->_currentObjectID . ' in WinCache');
}
}
$this->_currentCellIsDirty = false;
}
$this->_currentObjectID = $this->_currentObject = null;
}