Removed _sheetIndex property (and related getter/setter methods) from Readers that don't use it

git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@65199 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
Mark Baker 2010-12-12 11:57:59 +00:00
parent 5a5e920444
commit ba4b73c536
3 changed files with 1 additions and 78 deletions

View File

@ -58,13 +58,6 @@ class PHPExcel_Reader_Excel2003XML implements PHPExcel_Reader_IReader
*/ */
private $_loadSheetsOnly = null; private $_loadSheetsOnly = null;
/**
* Sheet index to read
*
* @var int
*/
private $_sheetIndex = 0;
/** /**
* Formats * Formats
* *
@ -521,6 +514,7 @@ class PHPExcel_Reader_Excel2003XML implements PHPExcel_Reader_IReader
$worksheetID = 0; $worksheetID = 0;
foreach($xml->Worksheet as $worksheet) { foreach($xml->Worksheet as $worksheet) {
$worksheet_ss = $worksheet->attributes($namespaces['ss']); $worksheet_ss = $worksheet->attributes($namespaces['ss']);
// echo $worksheet_ss['Name'],'<br />';
if ((isset($this->_loadSheetsOnly)) && (isset($worksheet_ss['Name'])) && if ((isset($this->_loadSheetsOnly)) && (isset($worksheet_ss['Name'])) &&
(!in_array($worksheet_ss['Name'], $this->_loadSheetsOnly))) { (!in_array($worksheet_ss['Name'], $this->_loadSheetsOnly))) {
continue; continue;
@ -709,23 +703,4 @@ class PHPExcel_Reader_Excel2003XML implements PHPExcel_Reader_IReader
return $objPHPExcel; return $objPHPExcel;
} }
/**
* Get sheet index
*
* @return int
*/
public function getSheetIndex() {
return $this->_sheetIndex;
}
/**
* Set sheet index
*
* @param int $pValue Sheet index
* @return PHPExcel_Reader_Excel2003XML
*/
public function setSheetIndex($pValue = 0) {
$this->_sheetIndex = $pValue;
return $this;
}
} }

View File

@ -58,13 +58,6 @@ class PHPExcel_Reader_Gnumeric implements PHPExcel_Reader_IReader
*/ */
private $_loadSheetsOnly = null; private $_loadSheetsOnly = null;
/**
* Sheet index to read
*
* @var int
*/
private $_sheetIndex = 0;
/** /**
* Formats * Formats
* *
@ -854,23 +847,4 @@ class PHPExcel_Reader_Gnumeric implements PHPExcel_Reader_IReader
return $RGB; return $RGB;
} }
/**
* Get sheet index
*
* @return int
*/
public function getSheetIndex() {
return $this->_sheetIndex;
}
/**
* Set sheet index
*
* @param int $pValue Sheet index
* @return PHPExcel_Reader_Gnumeric
*/
public function setSheetIndex($pValue = 0) {
$this->_sheetIndex = $pValue;
return $this;
}
} }

View File

@ -58,13 +58,6 @@ class PHPExcel_Reader_OOCalc implements PHPExcel_Reader_IReader
*/ */
private $_loadSheetsOnly = null; private $_loadSheetsOnly = null;
/**
* Sheet index to read
*
* @var int
*/
private $_sheetIndex = 0;
/** /**
* Formats * Formats
* *
@ -510,23 +503,4 @@ class PHPExcel_Reader_OOCalc implements PHPExcel_Reader_IReader
return $objPHPExcel; return $objPHPExcel;
} }
/**
* Get sheet index
*
* @return int
*/
public function getSheetIndex() {
return $this->_sheetIndex;
}
/**
* Set sheet index
*
* @param int $pValue Sheet index
* @return PHPExcel_Reader_OOCalc
*/
public function setSheetIndex($pValue = 0) {
$this->_sheetIndex = $pValue;
return $this;
}
} }