You are here

public function PHPExcel_CachedObjectStorage_Wincache::unsetWorksheetCells in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Wincache.php \PHPExcel_CachedObjectStorage_Wincache::unsetWorksheetCells()

* Clear the cell collection and disconnect from our parent * *

Return value

void

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/Wincache.php, line 234

Class

PHPExcel_CachedObjectStorage_Wincache
PHPExcel_CachedObjectStorage_Wincache

Code

public function unsetWorksheetCells() {
  if (!is_null($this->_currentObject)) {
    $this->_currentObject
      ->detach();
    $this->_currentObject = $this->_currentObjectID = null;
  }

  //	Flush the WinCache cache
  $this
    ->__destruct();
  $this->_cellCache = array();

  //	detach ourself from the worksheet, so that it can then delete this object successfully
  $this->_parent = null;
}