From ba4b73c5361ec3c04da0d070d39c469c43c72919 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Sun, 12 Dec 2010 11:57:59 +0000 Subject: [PATCH] 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 --- Classes/PHPExcel/Reader/Excel2003XML.php | 27 +----------------------- Classes/PHPExcel/Reader/Gnumeric.php | 26 ----------------------- Classes/PHPExcel/Reader/OOCalc.php | 26 ----------------------- 3 files changed, 1 insertion(+), 78 deletions(-) diff --git a/Classes/PHPExcel/Reader/Excel2003XML.php b/Classes/PHPExcel/Reader/Excel2003XML.php index 2cf3973..1dd89d7 100644 --- a/Classes/PHPExcel/Reader/Excel2003XML.php +++ b/Classes/PHPExcel/Reader/Excel2003XML.php @@ -58,13 +58,6 @@ class PHPExcel_Reader_Excel2003XML implements PHPExcel_Reader_IReader */ private $_loadSheetsOnly = null; - /** - * Sheet index to read - * - * @var int - */ - private $_sheetIndex = 0; - /** * Formats * @@ -521,6 +514,7 @@ class PHPExcel_Reader_Excel2003XML implements PHPExcel_Reader_IReader $worksheetID = 0; foreach($xml->Worksheet as $worksheet) { $worksheet_ss = $worksheet->attributes($namespaces['ss']); +// echo $worksheet_ss['Name'],'
'; if ((isset($this->_loadSheetsOnly)) && (isset($worksheet_ss['Name'])) && (!in_array($worksheet_ss['Name'], $this->_loadSheetsOnly))) { continue; @@ -709,23 +703,4 @@ class PHPExcel_Reader_Excel2003XML implements PHPExcel_Reader_IReader 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; - } } diff --git a/Classes/PHPExcel/Reader/Gnumeric.php b/Classes/PHPExcel/Reader/Gnumeric.php index fbe30b9..aae491d 100644 --- a/Classes/PHPExcel/Reader/Gnumeric.php +++ b/Classes/PHPExcel/Reader/Gnumeric.php @@ -58,13 +58,6 @@ class PHPExcel_Reader_Gnumeric implements PHPExcel_Reader_IReader */ private $_loadSheetsOnly = null; - /** - * Sheet index to read - * - * @var int - */ - private $_sheetIndex = 0; - /** * Formats * @@ -854,23 +847,4 @@ class PHPExcel_Reader_Gnumeric implements PHPExcel_Reader_IReader 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; - } } diff --git a/Classes/PHPExcel/Reader/OOCalc.php b/Classes/PHPExcel/Reader/OOCalc.php index 17a66c6..8afdf42 100644 --- a/Classes/PHPExcel/Reader/OOCalc.php +++ b/Classes/PHPExcel/Reader/OOCalc.php @@ -58,13 +58,6 @@ class PHPExcel_Reader_OOCalc implements PHPExcel_Reader_IReader */ private $_loadSheetsOnly = null; - /** - * Sheet index to read - * - * @var int - */ - private $_sheetIndex = 0; - /** * Formats * @@ -510,23 +503,4 @@ class PHPExcel_Reader_OOCalc implements PHPExcel_Reader_IReader 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; - } }