You are here

private function FeedsExcelParser::getSheet in Feeds Excel 7

Retrieve all relevant sheets from dataset.

2 calls to FeedsExcelParser::getSheet()
FeedsExcelParser::getSourceElement in ./ExcelParser.inc
Return the token replaced value for the given element.
FeedsExcelParser::parseItems in ./ExcelParser.inc
Parse items from the given reader source respecting processing limits.

File

./ExcelParser.inc, line 178

Class

FeedsExcelParser
Parses a given file as a Excel file.

Code

private function getSheet($sheet_id) {
  if (!isset($this->sheets[$sheet_id])) {
    $excel_sheet = $this->reader->sheets[$sheet_id];
    $excel_sheet['boundsheet_offset'] = $this->reader->boundsheets[$sheet_id]['offset'];
    $excel_sheet['name'] = $this->reader->boundsheets[$sheet_id]['name'];
    $excel_sheet['id'] = $sheet_id;

    //$sheets[$sheet_id] = token_get_values('excel_sheet', $sheet);
    $excel_sheet['fixed_cells'] = $this
      ->getFixed($this->reader->sheets[$sheet_id]);
    $this->sheets[$sheet_id] = $excel_sheet;
  }
  return $this->sheets[$sheet_id];
}