You are here

protected function PHPExcel_CachedObjectStorage_APC::_storeData in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php \PHPExcel_CachedObjectStorage_APC::_storeData()

Store cell data in cache for the current cell object if it's "dirty", and the 'nullify' the current cell object

@access private

Return value

void

Throws

PHPExcel_Exception

3 calls to PHPExcel_CachedObjectStorage_APC::_storeData()
PHPExcel_CachedObjectStorage_APC::addCacheData in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php
Add or Update a cell in cache identified by coordinate address
PHPExcel_CachedObjectStorage_APC::getCacheData in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php
Get cell at a specific coordinate
PHPExcel_CachedObjectStorage_APC::getCellList in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php
* Get a list of all cell addresses currently held in cache * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php, line 63

Class

PHPExcel_CachedObjectStorage_APC
PHPExcel_CachedObjectStorage_APC

Code

protected function _storeData() {
  if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
    $this->_currentObject
      ->detach();
    if (!apc_store($this->_cachePrefix . $this->_currentObjectID . '.cache', serialize($this->_currentObject), $this->_cacheTime)) {
      $this
        ->__destruct();
      throw new PHPExcel_Exception('Failed to store cell ' . $this->_currentObjectID . ' in APC');
    }
    $this->_currentCellIsDirty = false;
  }
  $this->_currentObjectID = $this->_currentObject = null;
}