You are here

public function PHPExcel_CachedObjectStorage_SQLite3::deleteCacheData in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php \PHPExcel_CachedObjectStorage_SQLite3::deleteCacheData()

Delete a cell in cache identified by coordinate address

Parameters

string $pCoord Coordinate address of the cell to delete:

Throws

PHPExcel_Exception

Overrides PHPExcel_CachedObjectStorage_CacheBase::deleteCacheData

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php, line 188

Class

PHPExcel_CachedObjectStorage_SQLite3
PHPExcel_CachedObjectStorage_SQLite3

Code

public function deleteCacheData($pCoord) {
  if ($pCoord === $this->_currentObjectID) {
    $this->_currentObject
      ->detach();
    $this->_currentObjectID = $this->_currentObject = NULL;
  }

  //	Check if the requested entry exists in the cache
  $this->_deleteQuery
    ->bindValue('id', $pCoord, SQLITE3_TEXT);
  $result = $this->_deleteQuery
    ->execute();
  if ($result === FALSE) {
    throw new PHPExcel_Exception($this->_DBHandle
      ->lastErrorMsg());
  }
  $this->_currentCellIsDirty = FALSE;
}