You are here

public function PHPExcel_Writer_OpenDocument::getPHPExcel in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument.php \PHPExcel_Writer_OpenDocument::getPHPExcel()

Get PHPExcel object

Return value

PHPExcel

Throws

PHPExcel_Writer_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/OpenDocument.php, line 179

Class

PHPExcel_Writer_OpenDocument
PHPExcel_Writer_OpenDocument

Code

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