You are here

public function PHPExcel_Reader_CSV::load in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/CSV.php \PHPExcel_Reader_CSV::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/CSV.php, line 217

Class

PHPExcel_Reader_CSV
PHPExcel_Reader_CSV

Code

public function load($pFilename) {

  // Create new PHPExcel
  $objPHPExcel = new PHPExcel();

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