You are here

class FeedsExcelParserIReadFilter in Feeds Excel 7.2

Provides chunk reader for Excel files.

Hierarchy

Expanded class hierarchy of FeedsExcelParserIReadFilter

File

./FeedsExcelParserIReadFilter.inc, line 11
Contains FeedsExcelParserIReadFilter.

View source
class FeedsExcelParserIReadFilter implements PHPExcel_Reader_IReadFilter {
  private $startRow;
  private $endRow;
  private $rowCounter;
  public function __construct($startRow = 0, $chunkSize = 0) {
    $this->startRow = $startRow;
    $this->endRow = $startRow + $chunkSize;
    $this->rowCounter =& drupal_static('feeds_excel_parser_row_counter');
    $this->rowCounter = 0;
  }
  public function readCell($column, $row, $worksheetName = '') {
    $this->rowCounter = $row;
    return $row >= $this->startRow && $row < $this->endRow;
  }

}

Members