]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/lists/pool/class_PoolEntriesList.php
Introduced getListIterator() to all lists implementing Listable
[hub.git] / application / hub / main / lists / pool / class_PoolEntriesList.php
index abfe382384c7b379a20b91a8301446ff5879126b..4c220837390bc8a6c5f56b518bc7ef62426eafe7 100644 (file)
@@ -47,7 +47,23 @@ class PoolEntriesList extends BaseList implements Listable {
                // Return the prepared instance
                return $listInstance;
        }
+
+       /**
+        * "Getter" for an iterator instance of this list
+        *
+        * @return      $iteratorInstance       An instance of a Iterator class
+        */
+       public function getListIterator () {
+               // Get the iterator instance from the factory
+               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('hub_ping_iterator_class', array($this));
+
+               // Rewind it
+               $iteratorInstance->rewind();
+
+               // ... and return it
+               return $iteratorInstance;
+       }
 }
 
-//
+// [EOF]
 ?>