X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Flists%2Fquery%2Flocal%2Fclass_LocalQueryList.php;h=2a89c83a1e3b77586ddb6883598ac0b76f97257f;hb=c13ca7c93ee55b02d1d3320fca5d2d8d6e953768;hp=83475e098fbcc5b696111bb2be1fcb191a7374cf;hpb=7cebddfa0d95b33a987bea7cc8bc6fb3471d0a2b;p=hub.git diff --git a/application/hub/main/lists/query/local/class_LocalQueryList.php b/application/hub/main/lists/query/local/class_LocalQueryList.php index 83475e098..2a89c83a1 100644 --- a/application/hub/main/lists/query/local/class_LocalQueryList.php +++ b/application/hub/main/lists/query/local/class_LocalQueryList.php @@ -4,7 +4,7 @@ * * @author Roland Haeder * @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]