You are here

public function PHPExcel_Reader_Abstract::setLoadSheetsOnly in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Abstract.php \PHPExcel_Reader_Abstract::setLoadSheetsOnly()

* Set which sheets to load * *

Parameters

mixed $value: * This should be either an array of worksheet names to be loaded, or a string containing a single worksheet name. * If NULL, then it tells the Reader to read all worksheets in the workbook * * @return PHPExcel_Reader_IReader

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Abstract.php, line 146

Class

PHPExcel_Reader_Abstract
PHPExcel_Reader_Abstract

Code

public function setLoadSheetsOnly($value = NULL) {
  if ($value === NULL) {
    return $this
      ->setLoadAllSheets();
  }
  $this->_loadSheetsOnly = is_array($value) ? $value : array(
    $value,
  );
  return $this;
}