You are here

public function PHPExcel_CachedObjectStorage_SQLite3::isDataSet in Loft Data Grids 6.2

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

* Is a value set 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/SQLite3.php, line 165

Class

PHPExcel_CachedObjectStorage_SQLite3
PHPExcel_CachedObjectStorage_SQLite3

Code

public function isDataSet($pCoord) {
  if ($pCoord === $this->_currentObjectID) {
    return TRUE;
  }

  //	Check if the requested entry exists in the cache
  $this->_selectQuery
    ->bindValue('id', $pCoord, SQLITE3_TEXT);
  $cellResult = $this->_selectQuery
    ->execute();
  if ($cellResult === FALSE) {
    throw new PHPExcel_Exception($this->_DBHandle
      ->lastErrorMsg());
  }
  $cellData = $cellResult
    ->fetchArray(SQLITE3_ASSOC);
  return $cellData === FALSE ? FALSE : TRUE;
}