X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fconsole%2Fclass_ConsoleTools.php;h=26c956b5b7ec91481588efd1128f756db2d79f85;hb=ed7ca64368d512574efeda0f6b8d8e970d41aa1d;hp=054c8c7db37d8e003cf97bdb13aa34047f79ad61;hpb=838cbd34450e0b29c5b749d86a526871dac461ac;p=shipsimu.git diff --git a/inc/classes/main/console/class_ConsoleTools.php b/inc/classes/main/console/class_ConsoleTools.php index 054c8c7..26c956b 100644 --- a/inc/classes/main/console/class_ConsoleTools.php +++ b/inc/classes/main/console/class_ConsoleTools.php @@ -2,11 +2,11 @@ /** * This class contains static helper functions for console applications * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @copyright Copyright (c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.ship-simu.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 @@ -35,7 +35,7 @@ class ConsoleTools extends BaseFrameworkSystem { $this->setObjectDescription("General console tools"); // Create an unique ID - $this->createUniqueID(); + $this->generateUniqueId(); } /** @@ -56,7 +56,7 @@ class ConsoleTools extends BaseFrameworkSystem { // Read the file $hostname = trim($io->readFromFile()); - $helper->getDebugInstance()->output(sprintf("[%s:] Our host name is: %s
\n", + $helper->getDebugInstance()->output(sprintf("[%s:] Our host name is: %s", $helper->__toString(), $hostname )); @@ -71,7 +71,7 @@ class ConsoleTools extends BaseFrameworkSystem { $ip = $ipResolved; // Debug message - $helper->getDebugInstance()->output(sprintf("[%s:] Resolved IP address is: %s
\n", + $helper->getDebugInstance()->output(sprintf("[%s:] Resolved IP address is: %s\n", $helper->__toString(), $ip ));