X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Finterfaces%2Flists%2Fclass_Listable.php;h=dff1b93bce2b08b8f3f444fd72c17387a1d7a132;hb=5121ff565fa26160e0c30fad2804114b2947b4b8;hp=caac23f3c23e636653efed4ca7fb2787e6b19a2f;hpb=a44489127edbf6dcbf0b1da401872c74aecf9c1a;p=hub.git diff --git a/application/hub/interfaces/lists/class_Listable.php b/application/hub/interfaces/lists/class_Listable.php index caac23f3c..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 - 2011 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 @@ -76,6 +76,13 @@ interface Listable extends FrameworkInterface, IteratorAggregate { * @return $iteratorInstance An instance of a Iterator class */ function getListIterator (); + + /** + * Clears this list (mostly by clearing all groups together) + * + * @return void + */ + function clearList (); } // [EOF]