protected function PHPExcel_CachedObjectStorage_PHPTemp::_storeData in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/PHPTemp.php \PHPExcel_CachedObjectStorage_PHPTemp::_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_PHPTemp::_storeData()
- PHPExcel_CachedObjectStorage_PHPTemp::addCacheData in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ PHPTemp.php - Add or Update a cell in cache identified by coordinate address
- PHPExcel_CachedObjectStorage_PHPTemp::getCacheData in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ PHPTemp.php - Get cell at a specific coordinate
- PHPExcel_CachedObjectStorage_PHPTemp::getCellList in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ PHPTemp.php - * Get a list of all cell addresses currently held in cache * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ PHPTemp.php, line 59
Class
- PHPExcel_CachedObjectStorage_PHPTemp
- PHPExcel_CachedObjectStorage_PHPTemp
Code
protected function _storeData() {
if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
$this->_currentObject
->detach();
fseek($this->_fileHandle, 0, SEEK_END);
$this->_cellCache[$this->_currentObjectID] = array(
'ptr' => ftell($this->_fileHandle),
'sz' => fwrite($this->_fileHandle, serialize($this->_currentObject)),
);
$this->_currentCellIsDirty = false;
}
$this->_currentObjectID = $this->_currentObject = null;
}