You are here

public function PHPExcel_CachedObjectStorage_PHPTemp::unsetWorksheetCells in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/PHPTemp.php \PHPExcel_CachedObjectStorage_PHPTemp::unsetWorksheetCells()

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

Return value

void

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/PHPTemp.php, line 165

Class

PHPExcel_CachedObjectStorage_PHPTemp
PHPExcel_CachedObjectStorage_PHPTemp

Code

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

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

  //	Close down the php://temp file
  $this
    ->__destruct();
}