|
@@ -2,11 +2,11 @@
|
|
|
|
|
|
* Utility class to access OpenDocument spreadsheets read-only
|
|
|
*
|
|
|
- * Requires PHP 5.0.3
|
|
|
+ * Requires PHP 5.2
|
|
|
*
|
|
|
- * @version $Id: Calc_Reader.php,v 1.1 2005-02-27 10:58:44 marand Exp $
|
|
|
+ * @version $Id: Calc_Reader.php,v 1.2 2007-08-06 06:17:06 marand Exp $
|
|
|
* @license CeCILL 2.0
|
|
|
- * @copyright 2005 Ouest Systemes Informatiques
|
|
|
+ * @copyright 2005-2006 Ouest Systemes Informatiques
|
|
|
*/
|
|
|
|
|
|
$erCalc_Reader = error_reporting(E_ALL | E_STRICT);
|
|
@@ -42,19 +42,20 @@ class Calc_Reader
|
|
|
|
|
|
|
|
|
* Return the rows in the spreadsheet as a DOMNodeList
|
|
|
- *
|
|
|
+ * WARNING: this means ALL the rows, in all the sheets, not just the first sheet
|
|
|
+ *
|
|
|
* @return DOMNodeList
|
|
|
*/
|
|
|
function getRows ()
|
|
|
{
|
|
|
$query = '//table:table-row';
|
|
|
-
|
|
|
+
|
|
|
$ret = $this->xpath->query($query);
|
|
|
unset($query);
|
|
|
-
|
|
|
- return $ret;
|
|
|
+
|
|
|
+ return $ret;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
error_reporting($erCalc_Reader);
|
|
|
unset ($erCalc_Reader);
|