You are here

public function PHPExcel_Reader_Excel2003XML::load in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php \PHPExcel_Reader_Excel2003XML::load()

* Loads PHPExcel from file * *

Parameters

string $pFilename: * @return PHPExcel * @throws PHPExcel_Reader_Exception

Overrides PHPExcel_Reader_IReader::load

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php, line 231

Class

PHPExcel_Reader_Excel2003XML
PHPExcel_Reader_Excel2003XML

Code

public function load($pFilename) {

  // Create new PHPExcel
  $objPHPExcel = new PHPExcel();
  $objPHPExcel
    ->removeSheetByIndex(0);

  // Load into this instance
  return $this
    ->loadIntoExisting($pFilename, $objPHPExcel);
}