]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/lists/query/local/class_LocalQueryList.php
Copyright notice updated
[hub.git] / application / hub / main / lists / query / local / class_LocalQueryList.php
index 83475e098fbcc5b696111bb2be1fcb191a7374cf..2a89c83a1e3b77586ddb6883598ac0b76f97257f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -37,13 +37,39 @@ class LocalQueryList extends BaseList implements Listable {
         *
         * @return      $listInstance           An instance a Listable class
         */
-       public final static function createLocalQueryList () {
+       public static final function createLocalQueryList () {
                // Get new instance
                $listInstance = new LocalQueryList();
 
                // Return the prepared instance
                return $listInstance;
        }
+
+       /**
+        * "Getter" for iterator from this list
+        *
+        * @return      $iteratorInstance       An instance of a Iterator class
+        */
+       public function getListIterator () {
+               // Get the instance from factory
+               $iteratorInstance = ObjectFactory::createObjectByConfiguredName('query_iterator_class', array($this));
+
+               // Rewind it
+               $iteratorInstance->rewind();
+
+               // ... and return it
+               return $iteratorInstance;
+       }
+
+       /**
+        * Clears this list by cleaning up all groups together.
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function clearList () {
+               $this->partialStub('Please implement this method.');
+       }
 }
 
 // [EOF]