You are here

public function PHPExcel_CachedObjectStorage_Wincache::isDataSet 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::isDataSet()

* Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell? * *

Parameters

string $pCoord Coordinate address of the cell to check: * @return boolean

Overrides PHPExcel_CachedObjectStorage_CacheBase::isDataSet

File

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

Class

PHPExcel_CachedObjectStorage_Wincache
PHPExcel_CachedObjectStorage_Wincache

Code

public function isDataSet($pCoord) {

  //	Check if the requested entry is the current object, or exists in the cache
  if (parent::isDataSet($pCoord)) {
    if ($this->_currentObjectID == $pCoord) {
      return true;
    }

    //	Check if the requested entry still exists in cache
    $success = wincache_ucache_exists($this->_cachePrefix . $pCoord . '.cache');
    if ($success === false) {

      //	Entry no longer exists in Wincache, so clear it from the cache array
      parent::deleteCacheData($pCoord);
      throw new PHPExcel_Exception('Cell entry ' . $pCoord . ' no longer exists in WinCache');
    }
    return true;
  }
  return false;
}