You are here

protected function PHPExcel_CachedObjectStorage_SQLite3::_storeData 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::_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_SQLite3::_storeData()
PHPExcel_CachedObjectStorage_SQLite3::addCacheData in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php
Add or Update a cell in cache identified by coordinate address
PHPExcel_CachedObjectStorage_SQLite3::copyCellCollection in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php
* Clone the cell collection * *
PHPExcel_CachedObjectStorage_SQLite3::getCacheData in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php
Get cell at a specific coordinate
PHPExcel_CachedObjectStorage_SQLite3::getCellList in vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/SQLite3.php
* Get a list of all cell addresses currently held in cache * *

File

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

Class

PHPExcel_CachedObjectStorage_SQLite3
PHPExcel_CachedObjectStorage_SQLite3

Code

protected function _storeData() {
  if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
    $this->_currentObject
      ->detach();
    $this->_insertQuery
      ->bindValue('id', $this->_currentObjectID, SQLITE3_TEXT);
    $this->_insertQuery
      ->bindValue('data', serialize($this->_currentObject), SQLITE3_BLOB);
    $result = $this->_insertQuery
      ->execute();
    if ($result === false) {
      throw new PHPExcel_Exception($this->_DBHandle
        ->lastErrorMsg());
    }
    $this->_currentCellIsDirty = false;
  }
  $this->_currentObjectID = $this->_currentObject = null;
}