diff options
author | Silvio <silvio@devlet.com.br> | 2010-07-01 15:00:10 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-07-01 15:00:10 -0300 |
commit | c2381df90612de26f2b3524897a61f0d8ad8cb0b (patch) | |
tree | 85cf4f26afffc08fcfaf84c99c129c7bea41e260 /classes/IsisConnector.php | |
parent | d5cf91aecdf508993820773530e03ba7d06c612e (diff) | |
download | cinisis-c2381df90612de26f2b3524897a61f0d8ad8cb0b.tar.gz cinisis-c2381df90612de26f2b3524897a61f0d8ad8cb0b.tar.bz2 |
Adding IsisRowIterator
Diffstat (limited to 'classes/IsisConnector.php')
-rw-r--r-- | classes/IsisConnector.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/IsisConnector.php b/classes/IsisConnector.php index 3978d0b..1111672 100644 --- a/classes/IsisConnector.php +++ b/classes/IsisConnector.php @@ -96,7 +96,7 @@ class IsisConnector { * Field data. */ public function getFields($field) { - for ($row = 0; $row <= $this->getRows($field); $row++) { + foreach (new IsisRowIterator($this, $field) as $row) { $values[$row] = $this->getField($field, $row); } @@ -137,7 +137,7 @@ class IsisConnector { * Subfield data. */ public function getSubfields($field, $subfield) { - for ($row = 0; $row <= $this->getRows($field); $row++) { + foreach (new IsisRowIterator($this, $field) as $row) { $values[$row] = $this->getSubfield($field, $subfield, $row); } |