@@ -60,113 +60,47 @@ public function __construct()
6060 $ this ->readFilter = new DefaultReadFilter ();
6161 }
6262
63- /**
64- * Read data only?
65- * If this is true, then the Reader will only read data values for cells, it will not read any formatting information.
66- * If false (the default) it will read data and formatting.
67- *
68- * @return bool
69- */
7063 public function getReadDataOnly ()
7164 {
7265 return $ this ->readDataOnly ;
7366 }
7467
75- /**
76- * Set read data only
77- * Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information.
78- * Set to false (the default) to advise the Reader to read both data and formatting for cells.
79- *
80- * @param bool $pValue
81- *
82- * @return IReader
83- */
8468 public function setReadDataOnly ($ pValue )
8569 {
8670 $ this ->readDataOnly = (bool ) $ pValue ;
8771
8872 return $ this ;
8973 }
9074
91- /**
92- * Read empty cells?
93- * If this is true (the default), then the Reader will read data values for all cells, irrespective of value.
94- * If false it will not read data for cells containing a null value or an empty string.
95- *
96- * @return bool
97- */
9875 public function getReadEmptyCells ()
9976 {
10077 return $ this ->readEmptyCells ;
10178 }
10279
103- /**
104- * Set read empty cells
105- * Set to true (the default) to advise the Reader read data values for all cells, irrespective of value.
106- * Set to false to advise the Reader to ignore cells containing a null value or an empty string.
107- *
108- * @param bool $pValue
109- *
110- * @return IReader
111- */
11280 public function setReadEmptyCells ($ pValue )
11381 {
11482 $ this ->readEmptyCells = (bool ) $ pValue ;
11583
11684 return $ this ;
11785 }
11886
119- /**
120- * Read charts in workbook?
121- * If this is true, then the Reader will include any charts that exist in the workbook.
122- * Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value.
123- * If false (the default) it will ignore any charts defined in the workbook file.
124- *
125- * @return bool
126- */
12787 public function getIncludeCharts ()
12888 {
12989 return $ this ->includeCharts ;
13090 }
13191
132- /**
133- * Set read charts in workbook
134- * Set to true, to advise the Reader to include any charts that exist in the workbook.
135- * Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value.
136- * Set to false (the default) to discard charts.
137- *
138- * @param bool $pValue
139- *
140- * @return IReader
141- */
14292 public function setIncludeCharts ($ pValue )
14393 {
14494 $ this ->includeCharts = (bool ) $ pValue ;
14595
14696 return $ this ;
14797 }
14898
149- /**
150- * Get which sheets to load
151- * Returns either an array of worksheet names (the list of worksheets that should be loaded), or a null
152- * indicating that all worksheets in the workbook should be loaded.
153- *
154- * @return mixed
155- */
15699 public function getLoadSheetsOnly ()
157100 {
158101 return $ this ->loadSheetsOnly ;
159102 }
160103
161- /**
162- * Set which sheets to load.
163- *
164- * @param mixed $value
165- * This should be either an array of worksheet names to be loaded, or a string containing a single worksheet name.
166- * If NULL, then it tells the Reader to read all worksheets in the workbook
167- *
168- * @return IReader
169- */
170104 public function setLoadSheetsOnly ($ value )
171105 {
172106 if ($ value === null ) {
@@ -178,36 +112,18 @@ public function setLoadSheetsOnly($value)
178112 return $ this ;
179113 }
180114
181- /**
182- * Set all sheets to load
183- * Tells the Reader to load all worksheets from the workbook.
184- *
185- * @return IReader
186- */
187115 public function setLoadAllSheets ()
188116 {
189117 $ this ->loadSheetsOnly = null ;
190118
191119 return $ this ;
192120 }
193121
194- /**
195- * Read filter.
196- *
197- * @return IReadFilter
198- */
199122 public function getReadFilter ()
200123 {
201124 return $ this ->readFilter ;
202125 }
203126
204- /**
205- * Set read filter.
206- *
207- * @param IReadFilter $pValue
208- *
209- * @return IReader
210- */
211127 public function setReadFilter (IReadFilter $ pValue )
212128 {
213129 $ this ->readFilter = $ pValue ;
0 commit comments