public function PHPExcel_CachedObjectStorage_APC::unsetWorksheetCells in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/APC.php \PHPExcel_CachedObjectStorage_APC::unsetWorksheetCells()
Clear the cell collection and disconnect from our parent
Return value
void
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ CachedObjectStorage/ APC.php, line 232
Class
- PHPExcel_CachedObjectStorage_APC
- PHPExcel_CachedObjectStorage_APC
Code
public function unsetWorksheetCells() {
if ($this->_currentObject !== NULL) {
$this->_currentObject
->detach();
$this->_currentObject = $this->_currentObjectID = null;
}
// Flush the APC cache
$this
->__destruct();
$this->_cellCache = array();
// detach ourself from the worksheet, so that it can then delete this object successfully
$this->_parent = null;
}