]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/lists/recipient/class_RecipientList.php
Updated 'core'.
[hub.git] / application / hub / main / lists / recipient / class_RecipientList.php
index 1f58106ff2a3d443cc2c806facd9e2ac75f296f7..a8ac4e9161a48841f9aa23e1d5a211ccb099431e 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A Recipient list
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @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]