public function PHPExcel_CachedObjectStorage_Memory::getCacheData in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Memory.php \PHPExcel_CachedObjectStorage_Memory::getCacheData()
Get cell at a specific coordinate
Parameters
string $pCoord Coordinate of the cell:
Return value
PHPExcel_Cell Cell that was found, or null if not found
Throws
Overrides PHPExcel_CachedObjectStorage_ICache::getCacheData
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ Memory.php, line 71
Class
- PHPExcel_CachedObjectStorage_Memory
- PHPExcel_CachedObjectStorage_Memory
Code
public function getCacheData($pCoord) {
// Check if the entry that has been requested actually exists
if (!isset($this->_cellCache[$pCoord])) {
$this->_currentObjectID = NULL;
// Return null if requested entry doesn't exist in cache
return null;
}
// Set current entry to the requested entry
$this->_currentObjectID = $pCoord;
// Return requested entry
return $this->_cellCache[$pCoord];
}