You are here

public function PHPExcel_Writer_Excel2007::getPHPExcel in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php \PHPExcel_Writer_Excel2007::getPHPExcel()

* Get PHPExcel object * *

Return value

PHPExcel * @throws PHPExcel_Writer_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007.php, line 420

Class

PHPExcel_Writer_Excel2007
PHPExcel_Writer_Excel2007

Code

public function getPHPExcel() {
  if ($this->_spreadSheet !== null) {
    return $this->_spreadSheet;
  }
  else {
    throw new PHPExcel_Writer_Exception("No PHPExcel assigned.");
  }
}