X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fclass_WorksContract.php;h=b776759bf41d3af5dac2cbfcafc163a3bd7e8778;hb=b3e47fb693fb8d40868158b0192b3392b309d97a;hp=ebed5120a6bd20422328f0dc9b01431bc08602b0;hpb=65d72098d3ec6a0ef7782668264fc6f33f9ebeb6;p=shipsimu.git
diff --git a/application/ship-simu/main/class_WorksContract.php b/application/ship-simu/main/class_WorksContract.php
index ebed512..b776759 100644
--- a/application/ship-simu/main/class_WorksContract.php
+++ b/application/ship-simu/main/class_WorksContract.php
@@ -6,7 +6,7 @@
* @version 0.0.0
* @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
@@ -65,7 +65,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
$contractInstance = new WorksContract();
// Debug-Meldung ausgeben
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $contractInstance->getDebugInstance()->output(sprintf("[%s:%d] Neuer Bauvertrag wird für das Schiff %s mit der %s %s erstellt.
\n",
+ if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $contractInstance->getDebugInstance()->output(sprintf("[%s:%d] Neuer Bauvertrag wird für das Schiff %s mit der %s %s erstellt.",
__CLASS__,
__LINE__,
$shipName,
@@ -98,40 +98,21 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
// Setter for ship instance
private final function setShipInstance (ConstructableShip $shipInstance) {
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Schiff %s wird in den Bauvertrag aufgenommen.
\n",
- __CLASS__,
- __LINE__,
- $shipInstance->getShipName()
- ));
$this->shipInstance = $shipInstance;
}
// Setter for ship name
private final function setShipName ($shipName) {
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das neue Schiff wird %s heissen.
\n",
- __CLASS__,
- __LINE__,
- $shipName
- ));
$this->shipName = (string) $shipName;
}
// Getter for ship name
public final function getShipName () {
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Schiffsname %s angefordert.
\n",
- __CLASS__,
- __LINE__,
- $this->shipName
- ));
return $this->shipName;
}
// Getter for ship instance
public final function getShipInstance () {
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Schiff-Instanz angefordert.
\n",
- __CLASS__,
- __LINE__
- ));
return $this->shipInstance;
}
@@ -142,7 +123,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
$parentPart = (string) $parentPart;
// Debug message
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Schiffsteil %s wird zusammen mit dem Konstruktionsteil %s in den Bauvertrag aufgenommen.
\n",
+ if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Schiffsteil %s wird zusammen mit dem Konstruktionsteil %s in den Bauvertrag aufgenommen.",
__CLASS__,
__LINE__,
$shipPart,
@@ -162,7 +143,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
));
// Debug message
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Versuche ein Schiffsteil in den Bauvertrag aufzunehmen.
\n",
+ if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Versuche ein Schiffsteil in den Bauvertrag aufzunehmen.",
__CLASS__,
__LINE__
));
@@ -186,7 +167,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
$price = $this->getMerchantInstance()->getPriceFromList($partInstance);
// Final debug message
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] %s kostet %s.
\n",
+ if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] %s kostet %s.",
__CLASS__,
__LINE__,
$partInstance->getObjectDescription(),
@@ -197,7 +178,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
$partInstance->setPrice($price);
// Final debug message
- if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] %s wurde in den Bauvertrag aufgenommen.
\n",
+ if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] %s wurde in den Bauvertrag aufgenommen.",
__CLASS__,
__LINE__,
$partInstance->getObjectDescription()
@@ -258,7 +239,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) {
if ($partnerInstance->equals($partyInstance)) {
// With itself
- $this->getDebugInstance()->output(sprintf("[%s:%d] Die %s %s stimmt einem Bauvertrag über das %s %s zu.
\n",
+ $this->getDebugInstance()->output(sprintf("[%s:%d] Die %s %s stimmt einem Bauvertrag über das %s %s zu.",
__CLASS__,
__LINE__,
$partnerInstance->getObjectDescription(),
@@ -268,7 +249,7 @@ class WorksContract extends BaseFrameworkSystem implements SignableContract {
));
} else {
// Other contract party
- $this->getDebugInstance()->output(sprintf("[%s:%d] Die %s %s geht mit der %s %s einen Bauvertrag über das %s %s ein.
\n",
+ $this->getDebugInstance()->output(sprintf("[%s:%d] Die %s %s geht mit der %s %s einen Bauvertrag über das %s %s ein.",
__CLASS__,
__LINE__,
$partnerInstance->getObjectDescription(),