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.
21 lines
439 B
21 lines
439 B
4 years ago
|
<?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;
|
||
|
}
|
||
|
}
|