You are here

public function PHPExcel_CachedObjectStorage_Wincache::addCacheData in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Wincache.php \PHPExcel_CachedObjectStorage_Wincache::addCacheData()

* Add or Update a cell in cache identified by coordinate address * *

Parameters

string $pCoord Coordinate address of the cell to update: * @param PHPExcel_Cell $cell Cell to update * @return PHPExcel_Cell * @throws PHPExcel_Exception

Overrides PHPExcel_CachedObjectStorage_ICache::addCacheData

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Wincache.php, line 91

Class

PHPExcel_CachedObjectStorage_Wincache
PHPExcel_CachedObjectStorage_Wincache

Code

public function addCacheData($pCoord, PHPExcel_Cell $cell) {
  if ($pCoord !== $this->_currentObjectID && $this->_currentObjectID !== null) {
    $this
      ->_storeData();
  }
  $this->_cellCache[$pCoord] = true;
  $this->_currentObjectID = $pCoord;
  $this->_currentObject = $cell;
  $this->_currentCellIsDirty = true;
  return $cell;
}