You are here

public static function PHPExcel_Calculation::unsetInstance in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php \PHPExcel_Calculation::unsetInstance()

* Unset an instance of this class * * @access public *

Parameters

PHPExcel $workbook Injected workbook identifying the instance to unset:

1 call to PHPExcel_Calculation::unsetInstance()
PHPExcel::__destruct in vendor/phpoffice/phpexcel/Classes/PHPExcel.php
Code to execute when this worksheet is unset()

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation.php, line 1786

Class

PHPExcel_Calculation
PHPExcel_Calculation (Multiton)

Code

public static function unsetInstance(PHPExcel $workbook = NULL) {
  if ($workbook !== NULL) {
    if (isset(self::$_workbookSets[$workbook
      ->getID()])) {
      unset(self::$_workbookSets[$workbook
        ->getID()]);
    }
  }
}