You are here

private function FeedsExcelParser::initLibrary in Feeds Excel 7.2

Init PHPExcel library.

1 call to FeedsExcelParser::initLibrary()
FeedsExcelParser::parse in ./FeedsExcelParser.inc

File

./FeedsExcelParser.inc, line 29
Contains FeedsExcelParser.

Class

FeedsExcelParser
Provides feeds parser class for Excel files.

Code

private function initLibrary() {
  if (!isset($this->library)) {
    $this->library = libraries_load('PHPExcel');
    if (empty($this->library['loaded'])) {
      throw new Exception(t('PHPExcel missed.'));
    }
  }
}