X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Flists%2Frecipient%2Fclass_RecipientList.php;h=a8ac4e9161a48841f9aa23e1d5a211ccb099431e;hb=280fca59f8ed35ddde36a794c7a9f4991911e46a;hp=1f58106ff2a3d443cc2c806facd9e2ac75f296f7;hpb=1212b8422d9040c36c355c2c81c689dda7fd79ad;p=hub.git diff --git a/application/hub/main/lists/recipient/class_RecipientList.php b/application/hub/main/lists/recipient/class_RecipientList.php index 1f58106ff..a8ac4e916 100644 --- a/application/hub/main/lists/recipient/class_RecipientList.php +++ b/application/hub/main/lists/recipient/class_RecipientList.php @@ -2,11 +2,11 @@ /** * A Recipient list * - * @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 @@ -42,8 +42,8 @@ class RecipientList extends BaseList implements Listable, Registerable { $listInstance = new RecipientList(); // Add groups: - // 1.) ip:port combinations - $listInstance->addGroup('ip_port'); + // 1.) Universal Node Locators + $listInstance->addGroup('unl'); // 2.) Session ids $listInstance->addGroup('session_id'); @@ -51,6 +51,25 @@ class RecipientList extends BaseList implements Listable, Registerable { // Return the prepared instance return $listInstance; } + + /** + * "Getter" for an iterator instance of this list (not implemented) + * + * @return $iteratorInstance An instance of a Iterator class + */ + public function getListIterator () { + $this->debugInstance($this->__toString() . ' uses the default iterator. Please call getIterator() instead!'); + } + + /** + * Clears this list by cleaning up all groups together. + * + * @return void + */ + public function clearList () { + // Clear both groups + $this->clearGroups(array('unl', 'session_id')); + } } // [EOF]