You are here

protected function PHPExcel_CachedObjectStorage_SQLite::_storeData in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php \PHPExcel_CachedObjectStorage_SQLite::_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

PHPExcel_Exception

4 calls to PHPExcel_CachedObjectStorage_SQLite::_storeData()
PHPExcel_CachedObjectStorage_SQLite::addCacheData in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php
Add or Update a cell in cache identified by coordinate address
PHPExcel_CachedObjectStorage_SQLite::copyCellCollection in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php
* Clone the cell collection * *
PHPExcel_CachedObjectStorage_SQLite::getCacheData in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php
Get cell at a specific coordinate
PHPExcel_CachedObjectStorage_SQLite::getCellList in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php
* Get a list of all cell addresses currently held in cache * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite.php, line 59

Class

PHPExcel_CachedObjectStorage_SQLite
PHPExcel_CachedObjectStorage_SQLite

Code

protected function _storeData() {
  if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
    $this->_currentObject
      ->detach();
    if (!$this->_DBHandle
      ->queryExec("INSERT OR REPLACE INTO kvp_" . $this->_TableName . " VALUES('" . $this->_currentObjectID . "','" . sqlite_escape_string(serialize($this->_currentObject)) . "')")) {
      throw new PHPExcel_Exception(sqlite_error_string($this->_DBHandle
        ->lastError()));
    }
    $this->_currentCellIsDirty = false;
  }
  $this->_currentObjectID = $this->_currentObject = null;
}