/**
* A NetworkListen iterator
*
- * @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, 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
* @todo This current implementation is not recommended, use a
* @todo latency-based iteration or similar approaches
*
* @param $listInstance A list of a Listable
* @return $iteratorInstance An instance a Iterator class
*/
- public final static function createNetworkListenIterator (Listable $listInstance) {
+ public static final function createNetworkListenIterator (Listable $listInstance) {
// Get new instance
$iteratorInstance = new NetworkListenIterator();
*/
public function current () {
// Default is null
- $current = null;
+ $current = NULL;
// Is the entry valid?
if (!$this->valid()) {
}
/**
- * Checks wether the current entry is valid (not at the end of the list)
+ * Checks whether the current entry is valid (not at the end of the list)
*
- * @return $isValid Wether the current entry is there
+ * @return $isValid Whether the current entry is there
*/
public function valid () {
// Check for total active peers and if we are not at the end