]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/class_Merchant.php
Links in all templates reworked, Primera API (see www.primusportal.de for details...
[shipsimu.git] / application / ship-simu / main / class_Merchant.php
index fc3d86076c841fbb465eea98a630602ec029d977..b0748e7fc890f15118506f73624758fb12523b4f 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @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
  *
@@ -36,12 +36,6 @@ class Merchant extends BaseFrameworkSystem {
                // Call parent constructor
                parent::__construct(__CLASS__);
 
-               // Set description
-               $this->setObjectDescription("H&auml;ndler");
-
-               // Generate unique ID number
-               $this->generateUniqueId();
-
                // Clean up a little
                $this->removeSystemArray();
        }
@@ -56,7 +50,7 @@ class Merchant extends BaseFrameworkSystem {
 
                // Debug message
                if ((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) {
-                       $merchantInstance->getDebugInstance()->output(sprintf("[%s:%d] Ein H&auml;ndler <strong>%s</strong> wird angelegt und soll sich am <strong>%s</strong> niederlassen.",
+                       $merchantInstance->debugOutput(sprintf("[%s:%d] Ein H&auml;ndler <strong>%s</strong> wird angelegt und soll sich am <strong>%s</strong> niederlassen.",
                                __CLASS__,
                                __LINE__,
                                $merchantName,
@@ -108,16 +102,6 @@ class Merchant extends BaseFrameworkSystem {
                // Secure pricing
                $price = (float) $price;
 
-               // Debug message
-               if ((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Der H&auml;ndler <strong>%s</strong> kann nun das Schiffsteil <strong>%s</strong> &quot;<strong>%s</strong>&quot; zu <strong>%s</strong> verkaufen.",
-                       __CLASS__,
-                       __LINE__,
-                       $this->getMerchantName(),
-                       $itemInstance->__toString(),
-                       $itemInstance->getObjectDescription(),
-                       $this->formatCurrency($price)
-               ));
-
                // Construct pricing item and add it to the list
                $this->priceList->append(array(
                        'item'  => $itemInstance,