public function PHPExcel::disconnectWorksheets in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel.php \PHPExcel::disconnectWorksheets()
Disconnect all worksheets from this PHPExcel workbook object, typically so that the PHPExcel object can be unset
1 call to PHPExcel::disconnectWorksheets()
- PHPExcel::__destruct in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel.php - Code to execute when this worksheet is unset()
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel.php, line 399
Class
- PHPExcel
- PHPExcel
Code
public function disconnectWorksheets() {
$worksheet = NULL;
foreach ($this->_workSheetCollection as $k => &$worksheet) {
$worksheet
->disconnectCells();
$this->_workSheetCollection[$k] = null;
}
unset($worksheet);
$this->_workSheetCollection = array();
}