mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-27 18:48:36 +00:00
Remove obsolete $obj prefix in cod sample
This commit is contained in:
@@ -59,7 +59,7 @@ class chunkReadFilter implements \PhpOffice\PhpSpreadsheet\Reader\IReadFilter
|
||||
|
||||
echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />';
|
||||
/* Create a new Reader of the type defined in $inputFileType **/
|
||||
$objReader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
|
||||
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
|
||||
|
||||
echo '<hr />';
|
||||
|
||||
@@ -72,9 +72,9 @@ for ($startRow = 2; $startRow <= 240; $startRow += $chunkSize) {
|
||||
/* Create a new Instance of our Read Filter, passing in the limits on which rows we want to read **/
|
||||
$chunkFilter = new chunkReadFilter($startRow, $chunkSize);
|
||||
/* Tell the Reader that we want to use the new Read Filter that we've just Instantiated **/
|
||||
$objReader->setReadFilter($chunkFilter);
|
||||
$reader->setReadFilter($chunkFilter);
|
||||
/* Load only the rows that match our filter from $inputFileName to a PHPExcel Object **/
|
||||
$spreadsheet = $objReader->load($inputFileName);
|
||||
$spreadsheet = $reader->load($inputFileName);
|
||||
|
||||
// Do some processing here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user