X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Finterfaces%2Flists%2Fclass_Listable.php;h=dff1b93bce2b08b8f3f444fd72c17387a1d7a132;hb=5121ff565fa26160e0c30fad2804114b2947b4b8;hp=2bc636a7961ef0f5221659774473b34782dce89b;hpb=aa4ac5d61eab8540e9902396998f3f53718eeaf5;p=hub.git diff --git a/application/hub/interfaces/lists/class_Listable.php b/application/hub/interfaces/lists/class_Listable.php index 2bc636a79..dff1b93bc 100644 --- a/application/hub/interfaces/lists/class_Listable.php +++ b/application/hub/interfaces/lists/class_Listable.php @@ -2,11 +2,11 @@ /** * An interface for lists * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,10 +23,10 @@ */ interface Listable extends FrameworkInterface, IteratorAggregate { /** - * Checks wether the given group is set + * Checks whether the given group is set * * @param $groupName Group to check if found in list - * @return $isset Wether the group is valid + * @return $isset Whether the group is valid */ function isGroupSet ($groupName); @@ -42,13 +42,13 @@ interface Listable extends FrameworkInterface, IteratorAggregate { /** * Adds the given instance to list group and sub group * - * @param $groupName Group to add instance to - * @param $subGroup Sub group to add instance to - * @param $instance An instance of Visitable + * @param $groupName Group to add instance to + * @param $subGroup Sub group to add instance to + * @param $visitableInstance An instance of Visitable * @return void * @throws NoListGroupException If the given group is not found */ - function addInstance ($groupName, $subGroup, Visitable $instance); + function addInstance ($groupName, $subGroup, Visitable $visitableInstance); /** * Adds the given entry to list group @@ -69,6 +69,20 @@ interface Listable extends FrameworkInterface, IteratorAggregate { * @throws InvalidListHashException If the solved hash index is invalid */ function updateCurrentEntryByHash ($hash, array $entryArray); + + /** + * "Getter" for an iterator instance of this list + * + * @return $iteratorInstance An instance of a Iterator class + */ + function getListIterator (); + + /** + * Clears this list (mostly by clearing all groups together) + * + * @return void + */ + function clearList (); } // [EOF]