You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
excel_handle/extend/excel/Analysis.php

21 lines
439 B

<?php
namespace excel;
use PhpOffice\PhpSpreadsheet\Reader\IReadFilter;
class Analysis implements IReadFilter
{
public $startRow;
public $endRow;
public $worksheetName;
public function readCell($column, $row, $worksheetName = '')
{
if ($worksheetName == $this->worksheetName && $row >= ($this->startRow + 1) && $row <= ($this->endRow + 1)) {
return true;
}
return false;
}
}