You are here

class chunkReadFilter in Feeds XLS 7

Chunk reader for reading data from an Excel file.

Hierarchy

Expanded class hierarchy of chunkReadFilter

File

./FeedsExcelParser.inc, line 7

View source
class chunkReadFilter implements PHPExcel_Reader_IReadFilter {

  // Start row
  private $start_row = 0;

  // End row
  private $end_row = 0;

  // Set the rows to parse.
  public function setRows($start, $size) {
    if ($start > 0) {
      $start++;
    }
    $this->start_row = $start;
    $this->end_row = $start + $size;
  }

  // Implements function.  Define whether or not we should read the contents of
  // the cell.
  public function readCell($column, $row, $worksheetName = '') {
    if ($row > $this->start_row && $row <= $this->end_row) {
      return TRUE;
    }
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
chunkReadFilter::$end_row private property
chunkReadFilter::$start_row private property
chunkReadFilter::readCell public function * Should this cell be read? * * Overrides PHPExcel_Reader_IReadFilter::readCell
chunkReadFilter::setRows public function