]> git.mxchange.org Git - shipsimu.git/commitdiff
code comments including license information added, type hints added, minor rewrites...
authorRoland Häder <roland@mxchange.org>
Sat, 8 Mar 2008 14:26:58 +0000 (14:26 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 8 Mar 2008 14:26:58 +0000 (14:26 +0000)
120 files changed:
application/selector/class_ApplicationHelper.php
application/selector/class_ApplicationSelector.php
application/selector/debug.php
application/selector/exceptions.php
application/selector/init.php
application/selector/loader.php
application/selector/starter.php
application/ship-simu/class_ApplicationHelper.php
application/ship-simu/debug.php
application/ship-simu/exceptions.php
application/ship-simu/exceptions/class_BirthdayInvalidException.php
application/ship-simu/exceptions/class_CabinShipMismatchException.php
application/ship-simu/exceptions/class_ContractAllreadySignedException.php
application/ship-simu/exceptions/class_ContractPartnerMismatchException.php
application/ship-simu/exceptions/class_DeckShipMismatchException.php
application/ship-simu/exceptions/class_EmptyStructuresListException.php
application/ship-simu/exceptions/class_InvalidContractPartnerException.php
application/ship-simu/exceptions/class_InvalidIDFormatException.php
application/ship-simu/exceptions/class_ItemNotInPriceListException.php
application/ship-simu/exceptions/class_ItemNotTradeableException.php
application/ship-simu/exceptions/class_MissingSimulatorIDException.php
application/ship-simu/exceptions/class_MotorShipMismatchException.php
application/ship-simu/exceptions/class_NoShipyardsConstructedException.php
application/ship-simu/exceptions/class_PersonellListAlreadyCreatedException.php
application/ship-simu/exceptions/class_RoomShipMismatchException.php
application/ship-simu/exceptions/class_ShipNotConstructedException.php
application/ship-simu/exceptions/class_ShipPartNotConstructableException.php
application/ship-simu/exceptions/class_StructureShipMismatchException.php
application/ship-simu/exceptions/class_StructuresOutOfBoundsException.php
application/ship-simu/exceptions/class_ToMuchEmployeesException.php
application/ship-simu/exceptions/class_TotalPriceNotCalculatedException.php
application/ship-simu/exceptions/class_UnsupportedLimitationPartException.php
application/ship-simu/exceptions/class_WrongGenderSpecifiedException.php
application/ship-simu/init.php
application/ship-simu/interfaces/class_ConstructableShip.php
application/ship-simu/interfaces/class_ConstructableShipPart.php
application/ship-simu/interfaces/class_ContractPartner.php
application/ship-simu/interfaces/class_Customer.php
application/ship-simu/interfaces/class_ItemIsTradeable.php
application/ship-simu/interfaces/class_Personellizer.php
application/ship-simu/interfaces/class_SignableContract.php
application/ship-simu/loader.php
application/ship-simu/main/class_BasePersonell.php
application/ship-simu/main/class_BaseSimulator.php
application/ship-simu/main/class_Merchant.php
application/ship-simu/main/class_WorksContract.php
application/ship-simu/main/companies/class_ShippingCompany.php
application/ship-simu/main/constructions/berths/class_Berth.php
application/ship-simu/main/constructions/class_BaseConstruction.php
application/ship-simu/main/constructions/docks/class_DryDock.php
application/ship-simu/main/constructions/harbors/class_Harbor.php
application/ship-simu/main/constructions/terminals/class_Terminal.php
application/ship-simu/main/constructions/yards/class_Shipyard.php
application/ship-simu/main/drives/class_BaseDrive.php
application/ship-simu/main/drives/motor/class_Motor.php
application/ship-simu/main/parts/class_BaseShipPart.php
application/ship-simu/main/parts/maschineroom/class_MaschineRoom.php
application/ship-simu/main/personell/class_SimulatorPersonell.php
application/ship-simu/main/personell/company/class_CompanyEmployee.php
application/ship-simu/main/ships/class_BaseShip.php
application/ship-simu/main/ships/passenger/class_PassengerShip.php
application/ship-simu/main/structures/class_BaseStructure.php
application/ship-simu/main/structures/extended/cabines/class_BaseCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_EconomyCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_LowCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_LuxuryCabin.php
application/ship-simu/main/structures/extended/cabines/ship/class_PremierCabin.php
application/ship-simu/main/structures/extended/class_BaseCabinStructure.php
application/ship-simu/main/structures/extended/class_BaseDeckStructure.php
application/ship-simu/main/structures/extended/class_BaseUpperStructure.php
application/ship-simu/main/structures/extended/decks/cargo/class_CarDeck.php
application/ship-simu/main/structures/extended/decks/cargo/class_TrainDeck.php
application/ship-simu/main/structures/extended/decks/cargo/class_TruckDeck.php
application/ship-simu/main/structures/extended/decks/class_BaseDeck.php
application/ship-simu/main/structures/extended/upper/class_Bridge.php
application/ship-simu/starter.php
inc/classes/exceptions/compressor/class_MismatchingCompressorsException.php
inc/classes/exceptions/container/class_ContainerItemIsNoArrayException.php
inc/classes/exceptions/container/class_ContainerItemIsNullException.php
inc/classes/exceptions/container/class_ContainerMaybeDamagedException.php
inc/classes/exceptions/database/local_file/class_SavePathIsEmptyException.php
inc/classes/exceptions/database/local_file/class_SavePathIsNoDirectoryException.php
inc/classes/exceptions/database/local_file/class_SavePathReadProtectedException.php
inc/classes/exceptions/database/local_file/class_SavePathWriteProtectedException.php
inc/classes/exceptions/io/class_DirPointerNotOpenedException.php
inc/classes/exceptions/io/class_FilePointerNotOpenedException.php
inc/classes/exceptions/io/class_InvalidDataLengthException.php
inc/classes/exceptions/io/class_InvalidDirectoryResourceException.php
inc/classes/exceptions/io/class_InvalidMD5ChecksumException.php
inc/classes/exceptions/io/class_PathIsEmptyException.php
inc/classes/exceptions/io/class_PathIsNoDirectoryException.php
inc/classes/exceptions/io/class_PathReadProtectedException.php
inc/classes/exceptions/language/class_InvalidLanguagePathStringException.php
inc/classes/exceptions/language/class_LanguagePathIsEmptyException.php
inc/classes/exceptions/language/class_LanguagePathIsNoDirectoryException.php
inc/classes/exceptions/language/class_LanguagePathReadProtectedException.php
inc/classes/exceptions/main/class_ClassMismatchException.php
inc/classes/exceptions/main/class_ClassNotFoundException.php
inc/classes/exceptions/main/class_ConfigEntryIsEmptyException.php
inc/classes/exceptions/main/class_ConfigEntryNotFoundException.php
inc/classes/exceptions/main/class_DimNotFoundInArrayException.php
inc/classes/exceptions/main/class_ExceptionNotChangedException.php
inc/classes/exceptions/main/class_ExceptionNotFoundException.php
inc/classes/exceptions/main/class_GetterNotFoundException.php
inc/classes/exceptions/main/class_InvalidArrayCountException.php
inc/classes/exceptions/main/class_InvalidObjectException.php
inc/classes/exceptions/main/class_MissingArrayElementsException.php
inc/classes/exceptions/main/class_MissingDecimalsThousandsSeperatorException.php
inc/classes/exceptions/main/class_MissingMethodException.php
inc/classes/exceptions/main/class_NoArrayCreatedException.php
inc/classes/exceptions/main/class_NoArrayException.php
inc/classes/exceptions/main/class_NoObjectException.php
inc/classes/exceptions/main/class_NullPointerException.php
inc/classes/exceptions/main/class_VariableIsNotSetException.php
inc/classes/exceptions/template/class_BasePathIsEmptyException.php
inc/classes/exceptions/template/class_BasePathIsNoDirectoryException.php
inc/classes/exceptions/template/class_BasePathReadProtectedException.php
inc/classes/exceptions/template/class_InvalidBasePathStringException.php
inc/classes/exceptions/template/class_InvalidTemplateVariableNameException.php
inc/classes/exceptions/template/class_UnexpectedTemplateTypeException.php

index 19b45b7ba0d59268304940f3f02f04c880ce25dd..7655415228db01f0f4b8f040c19707f3f6d9d9da 100644 (file)
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
        /**
  */
 class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
        /**
index cbfc91daa0c7be5a695017006b46f90d654bf34f..d95af7fe490f1601cb89e14db4fae8a86d4be4c0 100644 (file)
@@ -5,10 +5,25 @@
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
- * @todo       Extend a later BaseFrameworkApplication class
+ * @todo               Extend a later BaseFrameworkApplication class
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
  *
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class ApplicationSelector extends BaseFrameworkSystem {
        /**
  */
 class ApplicationSelector extends BaseFrameworkSystem {
        /**
index 2322bb5855952dad39490ea87f89004d973596de..8046ad48d3caa134fff9c35686b4ca14225bdafb 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Initialize some debug constants here
+/**
+ * Initialize some debug constants here
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 // [EOF]
 ?>
 
 // [EOF]
 ?>
index c0d5422373b5d05b7356be2e7dfb7c41b209fe2c..ac62fc10fcc248f79e1f33dd426f47f7e1593869 100644 (file)
@@ -1,4 +1,26 @@
 <?php
 <?php
+/**
+ * The exception handle shall be implemented here
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 // Set the new handler
 //set_exception_handler('selector_exception_handler');
 
 // Set the new handler
 //set_exception_handler('selector_exception_handler');
index a1255a93e805ad6ed34cba890b955df361ffa59e..98105797a2871ac7c01a1f3aad276b628c3d30df 100644 (file)
@@ -1,8 +1,30 @@
 <?php
 <?php
-// Application initializer
+/**
+ * Application initializer
+ *
+ * Please remember that this include file is being loaded *before* the class
+ * loader is loading classes from "exceptions", "interfaces" and "main"!
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 //
 //
-// Please remember that this include file is being loaded *before* the class
-// loader is loading classes from "exceptions", "interfaces" and "main"!
 //
 // Get an instance of the initializer
 $eval = sprintf("\$app = %s::getInstance();",
 //
 // Get an instance of the initializer
 $eval = sprintf("\$app = %s::getInstance();",
index 46f5bf8a71f40fba930ea5cf0f4d479f1ec04825..44dbb5c4bb3a822ef1281fa24b88e0fb09bab87e 100644 (file)
@@ -1,5 +1,27 @@
 <?php
 <?php
-// The application's class loader
+/**
+ * The application's class loader
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Is the application instance set?
 if (!isset($application)) {
        // We need this!
        ApplicationEntryPoint::app_die("[Main:] Interne Variable <strong>application</strong> nicht gefunden!");
 if (!isset($application)) {
        // We need this!
        ApplicationEntryPoint::app_die("[Main:] Interne Variable <strong>application</strong> nicht gefunden!");
index 1e6e5233bafe5593ac615ee0d340ba77fd480b32..0833cecce231b46c07b6594d2fd074129018acdb 100644 (file)
@@ -1,6 +1,28 @@
 <?php
 <?php
-// Is there an application helper instance? We need the method main() for
-// maining the application
+/**
+ * Starter of the application
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Get the application helper instance
 $app = ApplicationHelper::getInstance();
 
 // Some sanity checks
 $app = ApplicationHelper::getInstance();
 
 // Some sanity checks
index a177d343c228d6c88a80909479d0fe8aa0fe0b9b..e3209ef20732511f6de242f3bb95d3b528a5ea51 100644 (file)
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
  * Please remember that this include file is being loaded *before* the class
  * loader is loading classes from "exceptions", "interfaces" and "main"!
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
        /**
  */
 class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
        /**
index 5c6e9c88cce0a91ec9ad371483dd3a57e73454ac..d9fff10599af4404841f57979f7a43b74371b881 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Initialize some debug constants here
+/**
+ * Some debugging stuff for this application
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 // Reederei-Objekt debuggen
 //define('DEBUG_COMPANY_OBJ', true);
 
 // Reederei-Objekt debuggen
 //define('DEBUG_COMPANY_OBJ', true);
index df236341805d70c1e7b5d76cd6eca9905cde38f4..53e4b959eefe0958b9d375439d7c695842928def 100644 (file)
@@ -1,4 +1,26 @@
 <?php
 <?php
+/**
+ * The exception handler for this application
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 
 // Set the new handler
 //set_exception_handler('shipsimu_exception_handler');
 
 // Set the new handler
 //set_exception_handler('shipsimu_exception_handler');
index 032d5e46428b875a93f15acacac91c1ed1036698..913a429dbabbfa8e07663bcc274389fdf7580c8a 100644 (file)
@@ -1,11 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception for invalid birthdays (like 13-01-2008)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BirthdayInvalidException extends FrameworkException {
 class BirthdayInvalidException extends FrameworkException {
-       public function __construct ($birthArray, $code) {
-               // Cast the array
-               $birthArray = (array) $birthArray;
-
+       public function __construct (array $birthArray, $code) {
                // Add a message around the missing class
                $message = sprintf("Das Geburtsdatum <u>%s</u> ist leider falsch.",
                        date("d.m.Y", mktime(
                // Add a message around the missing class
                $message = sprintf("Das Geburtsdatum <u>%s</u> ist leider falsch.",
                        date("d.m.Y", mktime(
index 25890a9df2b26960d3a71daf04b134592480694e..735257fcdc3069180da9f3184b59f82d06b0d350 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception for cabins which doesn't match the ship (why?)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class CabinShipMismatchException extends FrameworkException {
 }
 
 class CabinShipMismatchException extends FrameworkException {
 }
 
index 03b4f6e5bcf1503dd1ffc1f44adc3585542e0173..b3f0e5ec6c24ad80c726f7b60f52895addf890be 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the contract we want to sign is already signed
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ContractAllreadySignedException extends FrameworkException {
 class ContractAllreadySignedException extends FrameworkException {
-       public function __construct ($classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Cast the array
                $classArray = (array) $classArray;
 
                // Cast the array
                $classArray = (array) $classArray;
 
index 2195fbb3e6b58fe8ba2d4b7b0b9e72d4c96f57af..fce9e7add8fe05e0967c79898e6c3fc2ff03d3a0 100644 (file)
@@ -1,11 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the contract partner did not match the excepted one
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ContractPartnerMismatchException extends FrameworkException {
 class ContractPartnerMismatchException extends FrameworkException {
-       public function __construct ($classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Der Vertragspartner von <u>%s</u> ist ung&uuml;tig (<u>%s</u>) und darf diesen Vertrag nicht unterzeichnen!",
                        $classArray[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:] Der Vertragspartner von <u>%s</u> ist ung&uuml;tig (<u>%s</u>) und darf diesen Vertrag nicht unterzeichnen!",
                        $classArray[0]->__toString(),
index f4967aacc79ce0a6c4e71346d4cf56652fe36ab9..03e3c67b856976ecdbbec354a5602795a6001452 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception thrown when the deck mismatches the ship (why?)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class DeckShipMismatchException extends FrameworkException {
 }
 
 class DeckShipMismatchException extends FrameworkException {
 }
 
index d84efb7700da7f7246eb34156c394c16717eeecc..cd01a1e4c82b09f6656ddb1fa0237386e85bcb74 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the structure list is empty
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class EmptyStructuresListException extends FrameworkException {
 class EmptyStructuresListException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Die Strukturen-Liste ist leer.",
                        $class->__toString()
                // Add a message around the missing class
                $message = sprintf("[%s:] Die Strukturen-Liste ist leer.",
                        $class->__toString()
index 0b1c304a38bca3c28f11f03a9fd0340a78e3f3d2..c0d0eb86f6e434cd11ec54e76de67cb0994f90c3 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the contract partner is invalid
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class InvalidContractPartnerException extends FrameworkException {
 class InvalidContractPartnerException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] <u>%s</u> ist kein g&uuml;tiger Vertragspartner.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:] <u>%s</u> ist kein g&uuml;tiger Vertragspartner.",
                        $class->__toString(),
index 3ce2e0dc99dc3b0ec11ecf10e3e3b9e3edd799a9..295096a960129b7ea8e069c39b23b8480e13efc5 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the format of the id number is invalid
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class InvalidIDFormatException extends FrameworkException {
 class InvalidIDFormatException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Ung&uuml;ltige ID-Nummer &uuml;bergeben.",
                        $class->__toString()
                // Add a message around the missing class
                $message = sprintf("[%s:] Ung&uuml;ltige ID-Nummer &uuml;bergeben.",
                        $class->__toString()
index 500ba929c2f6f88a740157e9398971510eea5082..8c125957ecc49c8e35844b08c74395d1144aafe4 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the requested item is not in the pricing list
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ItemNotInPriceListException extends FrameworkException {
 class ItemNotInPriceListException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[Merchant:] Preis f&uuml;r den Artikel <u>%s</u> <em><u>%s</u></em> nicht gefunden.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[Merchant:] Preis f&uuml;r den Artikel <u>%s</u> <em><u>%s</u></em> nicht gefunden.",
                        $class->__toString(),
index a83485f78bead1cb71e6fedb3b5cbda36901b140..496e4b08c5ba6e58584a84401169f22454816d26 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when an item is not tradeable (maybe unneccessary)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ItemNotTradeableException extends FrameworkException {
 class ItemNotTradeableException extends FrameworkException {
-       public function __construct ($classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] <u>%s</u> ist nicht handelbar!",
                        $classArray[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:] <u>%s</u> ist nicht handelbar!",
                        $classArray[0]->__toString(),
index d656dde110b5b1a8ce4a3cd29d6b3dfd043f9ed9..d66b6e5bc14ecba32137d4d23647f56fa44c988d 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the provided simulator id is invalid
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class MissingSimulatorIDException extends FrameworkException {
 class MissingSimulatorIDException extends FrameworkException {
-       public function __construct ($classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Die Simulator-ID <u>%s</u> scheint ung&uuml;ltig zu sein.",
                        $classArray[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:] Die Simulator-ID <u>%s</u> scheint ung&uuml;ltig zu sein.",
                        $classArray[0]->__toString(),
index ce487917270c50f221876d72a0392b0efccf4878..a86b6cb3d3205aad71988328c43b354ec1daf8e2 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception thrown when the motor does not match the ship (why?)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class MotorShipMismatchException extends FrameworkException {
 }
 
 class MotorShipMismatchException extends FrameworkException {
 }
 
index 32e133986227b0ef98f6da3e04c868eb61f8ee86..ff01762db2d92c2cb50d8859bb561aaf7ab9695d 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception thrown when there are no shipyards constructed yet.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class NoShipyardsConstructedException extends FrameworkException {
 class NoShipyardsConstructedException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                if (is_object($class)) {
                        // Add a message around the missing class
                        $message = sprintf("[%s:] Keine Werften gefunden!",
                if (is_object($class)) {
                        // Add a message around the missing class
                        $message = sprintf("[%s:] Keine Werften gefunden!",
index 3ac9078d03bd0d7ef31e342f8f72b04b2fb3c15e..eeee65193e999259018769e47fcd603bfdba3368 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// A crew list has already been initialized
+/**
+ * An exception thrown when a crew list has already been initialized
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class PersonellListAlreadyCreatedException extends FrameworkException {
 class PersonellListAlreadyCreatedException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Die interne Crew-Liste wurde bereits initialisiert.",
                        $class->__toString()
                // Add a message around the missing class
                $message = sprintf("[%s:] Die interne Crew-Liste wurde bereits initialisiert.",
                        $class->__toString()
index 19d5eed0bdab2b926f11a75ee5b6538baeaf8f4f..8555420bcd121834d170e60259f3a2b3f72ff773 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception thrown when a room mismatches the ship (why?)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class RoomShipMismatchException extends FrameworkException {
 }
 
 class RoomShipMismatchException extends FrameworkException {
 }
 
index 07b9bb9ad0c8f3dd02360ded26cc704924e5ace8..576629f1d69e3121f021bada733f182a2f804ed7 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception thrown when a ship is not constructed (yet)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ShipNotConstructedException extends FrameworkException {
 }
 
 class ShipNotConstructedException extends FrameworkException {
 }
 
index 338386ef3018075cbb337238328fcdc738118054..7202e972394baf2162782bd15385c01d6b9eeb20 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the ship part is not constructed yet.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ShipPartNotConstructableException extends FrameworkException {
        public function __construct (array $partArray, $code) {
                // Add a message around the missing class
 class ShipPartNotConstructableException extends FrameworkException {
        public function __construct (array $partArray, $code) {
                // Add a message around the missing class
index 273c40539ccd950d89f97c5932d9c99629ac792e..73ef0c4b312b425adc14206c4db8477cd57509c9 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Unsere eigene Exception!
+/**
+ * An exception thrown when a structure does not match the ship (why?)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class StructureShipMismatchException extends FrameworkException {
 }
 
 class StructureShipMismatchException extends FrameworkException {
 }
 
index 8b5d4cdb34b0558be6d4c71881592c4d10efd3ed..bd10fbc32a63e52735229ddf0231f1803578fac6 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the ship part index is out of bounds
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class StructuresOutOfBoundsException extends FrameworkException {
        public function __construct ($idx, $code) {
                // Add a message around the missing class
 class StructuresOutOfBoundsException extends FrameworkException {
        public function __construct ($idx, $code) {
                // Add a message around the missing class
index 227c37964a38e4911cb78219d121bffcaf4835e0..b25e4655785a78eb3bc9b77804dc92c0b4763cfd 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when to less people are unemployed and cannot be recruited
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ToMuchEmployeesException extends FrameworkException {
        public function __construct ($amountArray, $code) {
                // Cast the array
 class ToMuchEmployeesException extends FrameworkException {
        public function __construct ($amountArray, $code) {
                // Cast the array
index c649bedb1a053fcd7dfec48a8de7ddfc461cde07..fb11e1ba2e9105ce87308e0107f3be996a69b961 100644 (file)
@@ -1,8 +1,28 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the total price was not calculated
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class TotalPriceNotCalculatedException extends FrameworkException {
 class TotalPriceNotCalculatedException extends FrameworkException {
-       public function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Gesamtpreis ist nicht ermittelbar.",
                        $class->__toString()
                // Add a message around the missing class
                $message = sprintf("[%s:] Gesamtpreis ist nicht ermittelbar.",
                        $class->__toString()
index 152a898e29807bae5a969a3e2a0b1123b7cca587..ce02a79e14b8946fb30ebed026fd9a347ff04ef7 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when the limitation type is not supported
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class UnsupportedLimitationPartException extends FrameworkException {
        public function __construct ($str, $code) {
                // Add a message around the missing class
 class UnsupportedLimitationPartException extends FrameworkException {
        public function __construct ($str, $code) {
                // Add a message around the missing class
index ae12ce598fe10288ae84dcefda3f83de3a4ea01c..d3802d473a4607d860b193d0a5deb75e153433d1 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// An exception class for lost classes... ;-)
+/**
+ * An exception thrown when a wrong gender was specified
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class WrongGenderSpecifiedException extends FrameworkException {
        public function __construct ($gender, $code) {
                // Add a message around the missing class
 class WrongGenderSpecifiedException extends FrameworkException {
        public function __construct ($gender, $code) {
                // Add a message around the missing class
index b14230cc4cd59f29b079430efadd297e2783543c..0674104f3f363d4c2ace48a9df5f8a7843037379 100644 (file)
@@ -1,17 +1,38 @@
 <?php
 <?php
-// Application initializer
-//
-// Please remember that this include file is being loaded *before* the class
-// loader is loading classes from "exceptions", "interfaces" and "main"!
-//
-// You can prevent adding this application to the selector by uncommenting the
-// following line:
-//
-// if ((isset($this)) && (is_object($this)) && ($this->isSameClass("ApplicationSelector"))) { return; }
-//
-// isset() is required to prevent a warning and is_object() is highly required
-// when the application itself is requested in URL (hint: index.php?app=your_app)
-//
+/**
+ * Application initializer
+ *
+ * Please remember that this include file is being loaded *before* the class
+ * loader is loading classes from "exceptions", "interfaces" and "main"!
+ *
+ * You can prevent adding this application to the selector by uncommenting the
+ * following line:
+ *
+ * if ((isset($this)) && (is_object($this)) && ($this->isSameClass("ApplicationSelector"))) { return; }
+ *
+ * isset() is required to prevent a warning and is_object() is highly required
+ * when the application itself is requested in URL (hint: index.php?app=your_app)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 // Get an instance of the helper
 $eval = sprintf("\$app = %s::getInstance();",
        FrameworkConfiguration::getInstance()->readConfig("app_helper_class")
 // Get an instance of the helper
 $eval = sprintf("\$app = %s::getInstance();",
        FrameworkConfiguration::getInstance()->readConfig("app_helper_class")
index 9804433b5010c90a2b4863a4a752b20df16b5896..8f214c76040bd69bdf3e47f0cd44a70ed1de3921 100644 (file)
@@ -2,8 +2,24 @@
 /**
  * An interface for constructable ships
  *
 /**
  * An interface for constructable ships
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface ConstructableShip extends FrameworkInterface {
 }
  */
 interface ConstructableShip extends FrameworkInterface {
 }
index 0721b8cd1c876b6ff89f47d0089de4f1ef4f83d1..0ca9231beb6c5334417b2bf2ac4361dd9ef4d751 100644 (file)
@@ -2,8 +2,24 @@
 /**
  * An interface for constructable ship parts
  *
 /**
  * An interface for constructable ship parts
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface ConstructableShipPart extends FrameworkInterface {
 }
  */
 interface ConstructableShipPart extends FrameworkInterface {
 }
index b398c4f52b9ddd46bf086a869ab0d5347a0cfa92..f36a91e8270c98286106e6289d843bafd02110c3 100644 (file)
@@ -2,14 +2,30 @@
 /**
  * An interface for contract partners
  *
 /**
  * An interface for contract partners
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface ContractPartner extends FrameworkInterface {
        /**
         * This is a contract partner
         *
  */
 interface ContractPartner extends FrameworkInterface {
        /**
         * This is a contract partner
         *
-        * @param               $contractInstance       Must be a valid instance of WorksContract
+        * @param       $contractInstance       Must be a valid instance of WorksContract
         * @return      boolean                 true  = can be a contract partner,
         *                                                      false = no partner for contracts
         */
         * @return      boolean                 true  = can be a contract partner,
         *                                                      false = no partner for contracts
         */
index a111b1418ade940878d655572d7f6a396e6ec5a9..aa46e01ac1525f94e104688fc504f5d69f3f6b76 100644 (file)
@@ -2,8 +2,24 @@
 /**
  * An interface for all customers
  *
 /**
  * An interface for all customers
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface Customer extends FrameworkInterface {
        /**
  */
 interface Customer extends FrameworkInterface {
        /**
index 89520007f608ca0d8e4f03522c008b08cb6bed2d..e7926225e2e6bbb57b789f4cddaf02083fa9921e 100644 (file)
@@ -2,8 +2,24 @@
 /**
  * An interface for tradeable items
  *
 /**
  * An interface for tradeable items
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface ItemIsTradeable extends FrameworkInterface {
        /**
  */
 interface ItemIsTradeable extends FrameworkInterface {
        /**
index f4474e745f6866a54e1208ac10a94c5816aecf20..e528625c1d188b35c220ad7f2a80b5283f631d10 100644 (file)
@@ -2,11 +2,27 @@
 /**
  * An interface for all personells
  *
 /**
  * An interface for all personells
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface Personellizer extends FrameworkInterface {
  */
 interface Personellizer extends FrameworkInterface {
-         ///////////////////////
+               ///////////////////////
         /// General methods ///
        ///////////////////////
 
         /// General methods ///
        ///////////////////////
 
@@ -36,7 +52,7 @@ interface Personellizer extends FrameworkInterface {
         */
        function isDateValid ($year, $month, $day);
 
         */
        function isDateValid ($year, $month, $day);
 
-         /////////////////////////
+               /////////////////////////
         //// Status requests ////
        /////////////////////////
 
         //// Status requests ////
        /////////////////////////
 
@@ -72,7 +88,7 @@ interface Personellizer extends FrameworkInterface {
         */
        function isFemale ();
 
         */
        function isFemale ();
 
-         /////////////////
+               /////////////////
         //// Getters ////
        /////////////////
 
         //// Getters ////
        /////////////////
 
@@ -104,7 +120,7 @@ interface Personellizer extends FrameworkInterface {
         */
        function getSalary ();
 
         */
        function getSalary ();
 
-         /////////////////
+               /////////////////
         //// Setters ////
        /////////////////
 
         //// Setters ////
        /////////////////
 
@@ -159,7 +175,7 @@ interface Personellizer extends FrameworkInterface {
         */
        function setBirthday ($year, $month, $day);
 
         */
        function setBirthday ($year, $month, $day);
 
-         /////////////////////////////////////
+               /////////////////////////////////////
         //// Methods for changing salary ////
        /////////////////////////////////////
 
         //// Methods for changing salary ////
        /////////////////////////////////////
 
index 6b1636e6375958c3f29baff638c8494a26f4e1a1..8834d17ece1c4294f7590e854fec2dac7d6d5900 100644 (file)
@@ -2,8 +2,24 @@
 /**
  * An interface for signable contracts
  *
 /**
  * An interface for signable contracts
  *
- * @author     Roland Haeder <roland __NOSPAM__ [at] __REMOVE_ME__ mxchange [dot] org>
- * @version    0.1
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 interface SignableContract extends FrameworkInterface {
        // Sign the contract
  */
 interface SignableContract extends FrameworkInterface {
        // Sign the contract
index 41dca7d325b27a5b6e59a9615bff3251958ddef9..e44ed0fb407c3f737d3e24e126575471dba89da6 100644 (file)
@@ -1,5 +1,28 @@
 <?php
 <?php
-// The application's class loader
+/**
+ * A specialized class loader for this class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+// Is the application instance set?
 if (!isset($application)) {
        // We need this!
        ApplicationEntryPoint::app_die("[Main:] Interne Variable <strong>application</strong> nicht gefunden!");
 if (!isset($application)) {
        // We need this!
        ApplicationEntryPoint::app_die("[Main:] Interne Variable <strong>application</strong> nicht gefunden!");
index d79a0d8da783e232c936fb03854dcbb21bffb03f..848989c62683f015fdb29109da30ae74052881b6 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// What every kind of personell have
+/**
+ * A general class for personell
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BasePersonell extends BaseFrameworkSystem implements Personellizer {
        // Maximum/minimum age
        private $MIN_AGE = 21;
 class BasePersonell extends BaseFrameworkSystem implements Personellizer {
        // Maximum/minimum age
        private $MIN_AGE = 21;
index 5671ee2a67515f62755185f849a34593af800df5..a4df6f42897e82a5c6eda234162e4977b0d603d2 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Ein sehr abstraktes Objekt, Abmasse, Beschreibung und Teil-Instanz werden hier gespeichert
+/**
+ * The general simulator class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseSimulator extends BaseFrameworkSystem {
        // Schiffsteilinstanz
        private $partInstance = null;
 class BaseSimulator extends BaseFrameworkSystem {
        // Schiffsteilinstanz
        private $partInstance = null;
index 3f13a6358564d95e7d391dde5d5b9ec4b0db705e..40d2207bf4254604b1dc3bfd1c1b02db1ce352f9 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die Haendler-Klasse
+/**
+ * A class for merchants which can trade items
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Merchant extends BaseFrameworkSystem {
        // Name des Haendlers
        private $merchantName   = "Namenloser H&auml;ndler";
 class Merchant extends BaseFrameworkSystem {
        // Name des Haendlers
        private $merchantName   = "Namenloser H&auml;ndler";
@@ -152,7 +172,7 @@ class Merchant extends BaseFrameworkSystem {
 
                // Iterate throw whole list
                for ($iter = $this->priceList->getIterator(); $iter->valid(); $iter->next()) {
 
                // Iterate throw whole list
                for ($iter = $this->priceList->getIterator(); $iter->valid(); $iter->next()) {
-                       //Get current item
+                       // Get current item
                        $item = $iter->current();
 
                        // Does this item match? The unique ID may not work...
                        $item = $iter->current();
 
                        // Does this item match? The unique ID may not work...
index d2d4aecc705cc1e27cd22f209daba0ad0fe90fb5..0504fa59a5d470c94f3e63cef8adbc742ca63c5b 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Bauvertrag-Klasse
+/**
+ * The work constract class which can be used for contract parties
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class WorksContract extends BaseFrameworkSystem implements SignableContract {
        // Zukuenftiger Schiffsname
        private $shipName         = "";
 class WorksContract extends BaseFrameworkSystem implements SignableContract {
        // Zukuenftiger Schiffsname
        private $shipName         = "";
index 3fca7ead55b1f29b18f3b59c672bc25daf197eaf..87a4a7c233bcd638120c1411674f399e8fd30f85 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die Reederei-Klasse
+/**
+ * A shipping company may be founded with this class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class ShippingCompany extends BaseSimulator implements Customer, ContractPartner {
        /**
         * Full name of this company
 class ShippingCompany extends BaseSimulator implements Customer, ContractPartner {
        /**
         * Full name of this company
@@ -526,7 +546,7 @@ class ShippingCompany extends BaseSimulator implements Customer, ContractPartner
                        // Validate if the first found shipyard can construct the requested type
                        $result = $shipyard->isShipTypeConstructable($shipType);
 
                        // Validate if the first found shipyard can construct the requested type
                        $result = $shipyard->isShipTypeConstructable($shipType);
 
-                       //Does this shipyard construct the requested ship type?
+                       // Does this shipyard construct the requested ship type?
                        if ($result) break; // Then abort the search!
                }
 
                        if ($result) break; // Then abort the search!
                }
 
index e268397149f78c79655b6053c3f50a8beeef057f..b802608ae172a3c545659fcb2c43e2bd88a7a0a3 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Die Liegeplatz-Klasse
+/**
+ * A berth is a place where ships can wait for their next assignment
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Berth extends BaseConstruction {
        // Durchlaufende Nummer der Liegeplaetze
        private $berthIndex = 0;
 class Berth extends BaseConstruction {
        // Durchlaufende Nummer der Liegeplaetze
        private $berthIndex = 0;
index 8edd23d33476c3593d587a60d3d857327b28606a..287430201e4a2276ac03676e04100045bda86959 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Die abstrakte Bauten-Klasse
+/**
+ * A general construction (land) class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseConstruction extends BaseSimulator {
        // Tiefgang fuer z.B. Trockdocks
        private $draught = 0;
 class BaseConstruction extends BaseSimulator {
        // Tiefgang fuer z.B. Trockdocks
        private $draught = 0;
index f90c2dac59fe647c75cae769180f859ecd43bc52..e94512849688a63bfaa58147982e8e156bb043a7 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die Werft-Klasse
+/**
+ * A dry dock where ships can be repaired, repainted or modified in.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class DryDock extends BaseConstruction {
        // Zugewiesener Hafen
        private $harborInstance = null;
 class DryDock extends BaseConstruction {
        // Zugewiesener Hafen
        private $harborInstance = null;
index 2a687b0245eb2aeee06a9b4554609d5c13f66fd0..ce273ad58f3143f9ebfc2e4b5f3ad708130d6f10 100644 (file)
@@ -1,11 +1,31 @@
 <?php
 <?php
-
-// Die Hafen-Klasse
+/**
+ * A harbor class suitable for all kind of harbors
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Harbor extends BaseConstruction {
        // Namen des Hafens (z.B. Hamburger Hafen)
        private $harborName = "Unbekannter Hafen";
 
 class Harbor extends BaseConstruction {
        // Namen des Hafens (z.B. Hamburger Hafen)
        private $harborName = "Unbekannter Hafen";
 
-       //Schiffsliste aller gebauten Schiffe
+       // Schiffsliste aller gebauten Schiffe
        private $constructedShips = null;
 
        // Liegeplatz-Liste
        private $constructedShips = null;
 
        // Liegeplatz-Liste
index dbbed27417a1898e938c9d9b2250fd55461dce7d..aa38ee739acf709d5d0ab5de85e1026ba5a6a849 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die Anlegebruecke-Klasse
+/**
+ * A terminal class where ships can land and passengers can board the ship
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Terminal extends BaseConstruction {
        // Zugewiesener Hafen
        private $harborInstance = null;
 class Terminal extends BaseConstruction {
        // Zugewiesener Hafen
        private $harborInstance = null;
index 641ffeed8c8ad44505fefd69862896d80f9aabb6..050f0d71bdf6a3ca9b1b86ba0413333ef7a373ec 100644 (file)
@@ -1,6 +1,27 @@
 <?php
 <?php
-
-// Die Werft-Klasse
+/**
+ * A shipyard construction class which can be used for constructing all kinds of
+ * ships.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Shipyard extends BaseConstruction {
        // Werft-Name
        private $shipyardName    = "Namenlose Werft";
 class Shipyard extends BaseConstruction {
        // Werft-Name
        private $shipyardName    = "Namenlose Werft";
index ad52dd2390a89c5b0a079e3dedb455f2a082aee5..ce8d9e4c348d24a1c569cf679a8b49872161a03b 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die abstrakte Antrieb-Klasse
+/**
+ * A general drive class for all kind of "drives".
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseDrive extends BaseSimulator {
        // Price of this drive
        private $price      = 0.00;
 class BaseDrive extends BaseSimulator {
        // Price of this drive
        private $price      = 0.00;
index 42e75f4594bacbede9a144819c2846e49552d102..1e1bb2a69ea18ae5659c4d8969876a5301bc0306 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Motorisierter Antrieb
+/**
+ * A motorized drive for bigger ships
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Motor extends BaseDrive implements ItemIsTradeable, ConstructableShipPart {
        // Constructor
        private function __construct() {
 class Motor extends BaseDrive implements ItemIsTradeable, ConstructableShipPart {
        // Constructor
        private function __construct() {
index 8a95e54f4bc059b65636a713925f664c686da170..f2096525ad42c7b603b953e49ad29255234f9800 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Dieses kann z.B. der Maschinenraum, die Bruecke, Kabinen, Laderaum, etc. sein
+/**
+ * This is a general ship part which can be used for all other ship parts...
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseShipPart extends BaseSimulator {
        // Price of this ship part
        private $price = 0.00;
 class BaseShipPart extends BaseSimulator {
        // Price of this ship part
        private $price = 0.00;
index f2ef225f7b1c4d19a18cb7638a17f1a113b09523..2367ab71ceaee9a15e0efd712613ad3b475784c8 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-// Der Maschinenraum ist etwas anderes als eine Kabine, etc. !
-// Daher hat er eine eigene Klasse
+/**
+ * A maschine room class for really huge ships
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class MaschineRoom extends BaseShipPart {
        // Constructor
        private function __construct () {
 class MaschineRoom extends BaseShipPart {
        // Constructor
        private function __construct () {
index 532ca3f394f20ba77f27aa9b075775e16bc188da..f04a029070d822c4d6b4133fe25b084a4890a624 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die Schiffsbesatzung
+/**
+ * The general simulator personell class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class SimulatorPersonell extends BasePersonell {
        // Personell list
        private $personellList = null;
 class SimulatorPersonell extends BasePersonell {
        // Personell list
        private $personellList = null;
index d996f9f7536a78a004a61e195ca82f313c86768a..970017b0cee96d60f7cfaa9653441ee7c4a648b3 100644 (file)
@@ -1,6 +1,26 @@
 <?php
 <?php
-
-// Die Schiffsbesatzung
+/**
+ * Campany employees may be handled and payed within this class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class CompanyEmployee extends SimulatorPersonell {
        // Employeee list
        private $employeeList = null;
 class CompanyEmployee extends SimulatorPersonell {
        // Employeee list
        private $employeeList = null;
index 689374045f8117111e9f6ecffa494f00aee6ee45..c4a548b3f8908a66198e26d4fa3ad45a021170b1 100644 (file)
@@ -1,4 +1,26 @@
 <?php
 <?php
+/**
+ * A general ship class for all other kinds of ships even small sail ships
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseShip extends BaseSimulator {
        // Name des Shipes
        private $shipName   = "Unbekanntes Schiff";
 class BaseShip extends BaseSimulator {
        // Name des Shipes
        private $shipName   = "Unbekanntes Schiff";
index c5dfc01891b20a0dcd75c6d7cdea783abfecabbb..23a6c3eacba2a95e52da65b5a8ddd3fae9665ca0 100644 (file)
@@ -1,5 +1,27 @@
 <?php
 <?php
-
+/**
+ * A passenger ship with one or more decks, cabins, bridge (replacement for the
+ * captain) and many more
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class PassengerShip extends BaseShip implements ConstructableShip, LimitableObject {
        // Konstruktor
        private function __construct () {
 class PassengerShip extends BaseShip implements ConstructableShip, LimitableObject {
        // Konstruktor
        private function __construct () {
index 007f9bfffd8ff48259b651fb73f2a20d644bc833..733f0c4851d0a9c698e722c75d84549b8699f6f5 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Konstruktionen allgemein (also Aufbauten/Unterbauten)
+/**
+ * A general construction class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseStructure extends BaseSimulator {
        // Price of this structure
        private $price = 0.00;
 class BaseStructure extends BaseSimulator {
        // Price of this structure
        private $price = 0.00;
index b12cfcde7daa93bb5a1809501ef1921433529072..0831a3bfed74096e75d576079a147e0b22a5c2da 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Kabinen allgemein
+/**
+ * A general cabin class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseCabin extends BaseCabinStructure {
        // Konstruktor
        private function __construct ($class) {
 class BaseCabin extends BaseCabinStructure {
        // Konstruktor
        private function __construct ($class) {
index fadd15eef74452e0480bfc80c35db19c854e4a40..52cf199fffafd2c9d42cea517b0a1f0404aa26d9 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Economy-Class-Kabinen
+/**
+ * Cabins in the economy class may use this class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class EconomyCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
index b1707ab4931b73e4e3feb30b85c31e9f6739c137..bdb6796fbfb0b74f53edcfb47799c9375e3522bd 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// 2-Sterne-Kabinen
+/**
+ * Cabins in the lower decks may use this class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class LowCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class LowCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
index bc7066575b264c76dc52a98c6193f626ddaa3691..25c0dd4a7c6fadf42968f88988529cabe3393e55 100644 (file)
@@ -1,9 +1,30 @@
 <?php
 <?php
-// Luxuskabinen
+/**
+ * Luxury class cabins  resists here
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class LuxuryCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class LuxuryCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
-               //Call parent constructor
+               // Call parent constructor
                parent::constructor(__CLASS__);
 
                // Debug message
                parent::constructor(__CLASS__);
 
                // Debug message
index c7d846dcd683ea4a57003e3ba193472eb03bb328..3be9a95b0c4c45367d156d0fd0012c5af66428e8 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Premier-Kabinen
+/**
+ * So-called "premier class" cabins are constructed with this class (medium class)
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class PremierCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class PremierCabin extends BaseCabin implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
index 9f80e43511b8a70bebadf3e7fef3c1d5832c04ad..e989b25209277f222166609f24b5b8fcee48750c 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Kabinen allgemein
+/**
+ * General cabin structure class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseCabinStructure extends BaseStructure {
        // --- Besondere Eigenschaften dazufuegen: ---
        // Anzahl der Kabinen im Schiff
 class BaseCabinStructure extends BaseStructure {
        // --- Besondere Eigenschaften dazufuegen: ---
        // Anzahl der Kabinen im Schiff
index 5c218cce55f78ea31808e71b8a995f11f9c601e9..2ba52a5a11f71e4d596dae9eee692e2ca0ec8c05 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Decks (fuer Cargo) allgemein
+/**
+ * A general deck structure class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseDeckStructure extends BaseStructure {
        // Anzahl Decks
        private $numDecks = 0;
 class BaseDeckStructure extends BaseStructure {
        // Anzahl Decks
        private $numDecks = 0;
index ee7264db65b9c6e43552cd24c6ce0d8aa7bfa34c..e52a1249de839c5a45e85645775fe7862532cd0a 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Super structures (renamed to UpperStructure to avoid mixing it with super classes
+/**
+ * A general upper structure class.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseUpperStructure extends BaseStructure {
        /**
         * Constructor for all super structures on a ship
 class BaseUpperStructure extends BaseStructure {
        /**
         * Constructor for all super structures on a ship
index 110d360077d9db39eef930c15cab7fdfd35f0aab..397b3484f6809238bef485997ff71cd5d0eb7a2a 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Auto-Deck
+/**
+ * A deck class for cars with ramps and about 2.5 meters hich
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class CarDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class CarDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
index b643807148e6e08c4ea02566698de2e4c994b4fc..4c26c395870fa2fb6ea6fd42ed47dbefe7db7c80 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Decks fuer LKWs
+/**
+ * A train deck with rails constructed in it
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class TrainDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class TrainDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
index 73207e559c8526d6fe6e382c77e526a90923b39c..99c901a02b93444b8776879801163c6b02a864a9 100644 (file)
@@ -1,5 +1,27 @@
 <?php
 <?php
-// Decks fuer LKWs
+/**
+ * A truck and bus decks. Also other vehicle may be put in here if they don't
+ * match into the car deck.
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
 class TruckDeck extends BaseDeck implements ItemIsTradeable, ConstructableShipPart {
        // Konstruktor
        private function __construct () {
index e72f96feacf0e7a4c26fe9a9c7d1f89d1f4ca5e4..22da45c6a1b422cf4b749bc19d86a1ff2d75b30a 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// General (base) deck
+/**
+ * A general cabin class
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class BaseDeck extends BaseDeckStructure {
        /**
         * Constructor for cargo decks in general
 class BaseDeck extends BaseDeckStructure {
        /**
         * Constructor for cargo decks in general
index 80c43703918c17bc7b7e4579f84bcd9611a080cf..7f0fce44d3105418e0ba5f55f5c320dd42f5f19f 100644 (file)
@@ -1,5 +1,26 @@
 <?php
 <?php
-// Die Aufbauten allgemein
+/**
+ * The control bridge of the ship
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
 class Bridge extends BaseUpperStructure implements ItemIsTradeable, ConstructableShipPart {
        // Constructor
        private function __construct () {
 class Bridge extends BaseUpperStructure implements ItemIsTradeable, ConstructableShipPart {
        // Constructor
        private function __construct () {
@@ -39,7 +60,7 @@ class Bridge extends BaseUpperStructure implements ItemIsTradeable, Constructabl
                $bridgeInstance->setHeight($height);
                $bridgeInstance->setLength($length);
 
                $bridgeInstance->setHeight($height);
                $bridgeInstance->setLength($length);
 
-               //Instanz zurueckgeben
+               // Instanz zurueckgeben
                return $bridgeInstance;
        }
 
                return $bridgeInstance;
        }
 
index 1e6e5233bafe5593ac615ee0d340ba77fd480b32..223ccc01c22c5810f430b5758f3ecaa85c0f7678 100644 (file)
@@ -1,4 +1,27 @@
 <?php
 <?php
+/**
+ * The application launcher
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 // Is there an application helper instance? We need the method main() for
 // maining the application
 $app = ApplicationHelper::getInstance();
 // Is there an application helper instance? We need the method main() for
 // maining the application
 $app = ApplicationHelper::getInstance();
index 4ff32f0726ce112bb9b660d0bdeeb7887e8c2fcb..2ca8d613e9a682c8282ee82adf229d5803942265 100644 (file)
@@ -25,14 +25,11 @@ class MismatchingCompressorsException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Kompressor <u>%s</u> zu den geladenen Daten aus <u>%s</u> und der aktuell verwendete Kompressor <u>%s</u> stimmen nicht &uuml;berein!",
                        $array[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Kompressor <u>%s</u> zu den geladenen Daten aus <u>%s</u> und der aktuell verwendete Kompressor <u>%s</u> stimmen nicht &uuml;berein!",
                        $array[0]->__toString(),
index a5e3468157cc3d2fa6c92114a849db81fe2ea566..405c39b0de243cbd44d38da01bf85c89b9579456 100644 (file)
@@ -29,7 +29,7 @@ class ContainerItemIsNoArrayException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Ein Container-Item ist kein Array.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Ein Container-Item ist kein Array.",
                        $class->__toString(),
index bffb9b08d738fbfeda113800c240644c86965ef8..2cfafc4a0162b0f04a0b4aa9e73e93b277c6c407 100644 (file)
@@ -29,7 +29,7 @@ class ContainerItemIsNullException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Ein Container-Item ist auf <em>null</em> gesetzt.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Ein Container-Item ist auf <em>null</em> gesetzt.",
                        $class->__toString(),
index 417e49d2e2737034eec66935534a74c0fa663d84..56686983e852da6caa45a239e0aff284f99f58f2 100644 (file)
@@ -29,7 +29,7 @@ class ContainerMaybeDamagedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Ein Container ist m&ouml;glicherweise besch&auml;digt.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Ein Container ist m&ouml;glicherweise besch&auml;digt.",
                        $class->__toString(),
index ddc60e87904e6ac1595bb2ba428ded6de856f4ed..efae626f91d73b6e045b08c9dcaf03db3dd2a8dd 100644 (file)
@@ -29,7 +29,7 @@ class SavePathIsEmptyException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Speicherpfad ist leer.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Speicherpfad ist leer.",
                        $class->__toString(),
index 0eabf4e52e025aaa8d520f1217f24ad136538a52..964a8d46e59bfa99377579c89d059162fd12720e 100644 (file)
@@ -29,7 +29,7 @@ class SavePathIsNoDirectoryException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("Der angegebene Speicherpfad <u>%s</u> ist ung&uuml;tig (kein Pfad).", $path);
 
                // Add a message around the missing class
                $message = sprintf("Der angegebene Speicherpfad <u>%s</u> ist ung&uuml;tig (kein Pfad).", $path);
 
index 678ecd005516f87b84806ddaf6a3be6e0af329f8..26b86b34ed75dd4f180f8a535e1c89d62247f8d6 100644 (file)
@@ -29,7 +29,7 @@ class SavePathReadProtectedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("Der Pfad <u>%s</u> ist lese-gesch&uuml;tzt. Bitte Zugriffsrechte (CHMOD) zum Lesen setzen.", $path);
 
                // Add a message around the missing class
                $message = sprintf("Der Pfad <u>%s</u> ist lese-gesch&uuml;tzt. Bitte Zugriffsrechte (CHMOD) zum Lesen setzen.", $path);
 
index 0e7ca79c94a344a7113b652f8964e9cff7841fd3..4ad27906b454d61038d1513787e39f30740e5caf 100644 (file)
@@ -29,7 +29,7 @@ class SavePathWriteProtectedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("Der angegebene Speicherpfad <u>%s</u> ist schreibgesch&uuml;tzt. Bitte Zugriffsrechte (CHMOD) entsprechend setzen.", $path);
 
                // Add a message around the missing class
                $message = sprintf("Der angegebene Speicherpfad <u>%s</u> ist schreibgesch&uuml;tzt. Bitte Zugriffsrechte (CHMOD) entsprechend setzen.", $path);
 
index 5c415e16779f0049069aeffaa31928f98e6130ed..060b01709529dab432c17049bf30382f08b8f43e 100644 (file)
@@ -29,7 +29,7 @@ class DirPointerNotOpenedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("F&uuml;r den Pfad <u>%s</u> konnte kein Pointer initialisiert werden.", $path);
 
                // Add a message around the missing class
                $message = sprintf("F&uuml;r den Pfad <u>%s</u> konnte kein Pointer initialisiert werden.", $path);
 
index fd4e541788324ea4097c6683cfa8aa86daf22dbe..9c7a8a8914b584173b9e501ae00a6307beb23cf0 100644 (file)
@@ -29,7 +29,7 @@ class FilePointerNotOpenedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("F&uuml;r die Datei <u>%s</u> konnte kein Pointer initialisiert werden. M&ouml;glicherweise ist die Datei nicht lesbar oder fehlt!", $path);
 
                // Add a message around the missing class
                $message = sprintf("F&uuml;r die Datei <u>%s</u> konnte kein Pointer initialisiert werden. M&ouml;glicherweise ist die Datei nicht lesbar oder fehlt!", $path);
 
index 630d1cae627e63c7f202dcb33b7c9f92922d9ae2..bc742135e782cc282d42be7165421c4c89692c72 100644 (file)
@@ -7,7 +7,7 @@
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.org
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.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
  * the Free Software Foundation, either version 3 of the License, or
  * 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
  * the Free Software Foundation, either version 3 of the License, or
@@ -25,14 +25,11 @@ class InvalidDataLengthException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Eine unerwartete Datenl&auml;nge von <u>%s</u> Byte ist aufgetreten. <u>%s</u> wurden erwartet!",
                        $array[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Eine unerwartete Datenl&auml;nge von <u>%s</u> Byte ist aufgetreten. <u>%s</u> wurden erwartet!",
                        $array[0]->__toString(),
index fc48bebbcf169dd7c74aa8b850ee83d88fc5eac3..668b0f0e41b0585acd9c628d901d78e077dd89c9 100644 (file)
@@ -29,7 +29,7 @@ class InvalidDirectoryResourceException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                if (is_null($class)) {
                        $message = "[???:] Ung&uuml;tige Verzeichnis-Resource.";
                // Add a message around the missing class
                if (is_null($class)) {
                        $message = "[???:] Ung&uuml;tige Verzeichnis-Resource.";
index 1044d254b08bd973d8b9f1d478187e0b525a39b5..1aabdb48e719d9c66be6040b6240c98bc28815a7 100644 (file)
@@ -7,7 +7,7 @@
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.org
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.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
  * the Free Software Foundation, either version 3 of the License, or
  * 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
  * the Free Software Foundation, either version 3 of the License, or
@@ -25,14 +25,11 @@ class InvalidMD5ChecksumException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die MD5-Pr&uuml;fsummen <u>%s</u> und <u>%s</u> stimmen nicht &uuml;berein!",
                        $array[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die MD5-Pr&uuml;fsummen <u>%s</u> und <u>%s</u> stimmen nicht &uuml;berein!",
                        $array[0]->__toString(),
index ffabd5c3d70e62a716892809bb09ac021d72c492..4c93d20e1010c95023f4ac0b6ba6dc4103f83de3 100644 (file)
@@ -29,7 +29,7 @@ class PathIsEmptyException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                if (is_null($class)) {
                        $message = "[???:] Der Verzeichnisname ist leer.";
                // Add a message around the missing class
                if (is_null($class)) {
                        $message = "[???:] Der Verzeichnisname ist leer.";
index 6b0a531105edd268d173c7ff3d9317208cb1b611..2ff79ba9341cee2d54a891fe5c62891e98f9b4a2 100644 (file)
@@ -29,7 +29,7 @@ class PathIsNoDirectoryException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("Der angegebene Pfad <u>%s</u> ist ung&uuml;tig (kein Pfad).", $path);
 
                // Add a message around the missing class
                $message = sprintf("Der angegebene Pfad <u>%s</u> ist ung&uuml;tig (kein Pfad).", $path);
 
index 530f16fa9f4de66043ff277f04ae19fe7ea13fdc..70ea7c0199e0239931d7d75b26cdc96fbf1e5dec 100644 (file)
@@ -29,7 +29,7 @@ class PathReadProtectedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($path, $code) {
+       public function __construct ($path, $code) {
                // Add a message around the missing class
                $message = sprintf("Der Pfad <u>%s</u> ist lese-gesch&uuml;tzt. Bitte Zugriffsrechte (CHMOD) zum Lesen setzen.", $path);
 
                // Add a message around the missing class
                $message = sprintf("Der Pfad <u>%s</u> ist lese-gesch&uuml;tzt. Bitte Zugriffsrechte (CHMOD) zum Lesen setzen.", $path);
 
index 24674cd3350e218d60b565c0544d088da4dd796f..5161c23d8b8950a989c8c03e7631c52a0c8d2e12 100644 (file)
@@ -29,7 +29,7 @@ class InvalidLanguagePathStringException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> ist keine Zeichenkette!",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> ist keine Zeichenkette!",
                        $class[0]->__toString(),
index 4e2cbf8283b43a51eea947ebdfada2ede1c8734c..653f4c0e9333b16bf721ceefd7d545e8883abc8c 100644 (file)
@@ -29,7 +29,7 @@ class LanguagePathIsEmptyException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprachen-Basispfad ist leer.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprachen-Basispfad ist leer.",
                        $class->__toString(),
index 1f0f53dae0ddd992d7481db2f0e4abc5f3f9ea89..6a672af7aaf14847d574ea62a8abf529d4f183a6 100644 (file)
@@ -29,7 +29,7 @@ class LanguagePathIsNoDirectoryException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprach-Basispfad <u>%s</u> existiert nicht oder ist eine Datei!",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprach-Basispfad <u>%s</u> existiert nicht oder ist eine Datei!",
                        $class[0]->__toString(),
index 72bf450f870a49deee1980adc57e0c23e2615edc..ccfd2c37177383af0e895bcbf0a9dc2b57ee5a40 100644 (file)
@@ -29,7 +29,7 @@ class LanguagePathReadProtectedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprach-Basispfad <u>%s</u> ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprach-Basispfad <u>%s</u> ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.",
                        $class[0]->__toString(),
index b8079c1f8aecab0f2454909921103dfff42d4eb6..b4820015719a3685ca76535ea4a451f176022ba6 100644 (file)
@@ -29,7 +29,7 @@ class ClassMismatchException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("Die Klasse <u>%s</u> ist ungleich <u>%s</u>.",
                        $classArray[0],
                // Add a message around the missing class
                $message = sprintf("Die Klasse <u>%s</u> ist ungleich <u>%s</u>.",
                        $classArray[0],
index a91f6e70b7e3ba0e052b0039c38aaa9d6d37acb8..b7242e72768cb130be63625afa4e9f8a8f22df8a 100644 (file)
@@ -29,7 +29,7 @@ class ClassNotFoundException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("Die interne Script-Klasse <u>%s</u> konnte nicht gefunden werden!", $class);
 
                // Add a message around the missing class
                $message = sprintf("Die interne Script-Klasse <u>%s</u> konnte nicht gefunden werden!", $class);
 
index 2661bf04518306fd7ca3426b7e85b928475f1b3e..df1891566a156d5365e88a3dcd68f092552b5f21 100644 (file)
@@ -29,7 +29,7 @@ class ConfigEntryIsEmptyException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Leeren Konfigurationseintrag angegeben!",
                        $class,
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Leeren Konfigurationseintrag angegeben!",
                        $class,
index b83567f55d64bc337b8c9728b0891de02dc59d96..b753bdf93a7a75261340060e77856eeb94047514 100644 (file)
@@ -29,7 +29,7 @@ class ConfigEntryNotFoundException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Cast the array
                $classArray = (array) $classArray;
 
                // Cast the array
                $classArray = (array) $classArray;
 
index f65a01afbc116dc062d2aee9e740a381da5b03c0..4e0bcfb714268dbeda1018a0adcd4e51ed933b17 100644 (file)
@@ -29,7 +29,7 @@ class DimNotFoundInArrayException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                if (is_object($class)) {
                        // Add a message around the missing class
                        $message = sprintf("[%s:%d] Abmasse konnten nicht extrahiert werden!",
                if (is_object($class)) {
                        // Add a message around the missing class
                        $message = sprintf("[%s:%d] Abmasse konnten nicht extrahiert werden!",
index d8123ebe0d46f7f8361e33614a0bf31b4b5df928..af6ae2c9154e9fbbe4d05ac7aee878e7aa8facf2 100644 (file)
@@ -30,7 +30,7 @@ class ExceptionNotChangedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Exception(s) wurde(n) nicht ge&auml;ndert.",
                        $class,
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Exception(s) wurde(n) nicht ge&auml;ndert.",
                        $class,
index 131e732cb35fea5a06c3c7f122d5de4191722a75..33867ae4d2d2718d7ed1e70828cfba6452b87b56 100644 (file)
@@ -29,7 +29,7 @@ class ExceptionNotFoundException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Cast the array
                $classArray = (array) $classArray;
 
                // Cast the array
                $classArray = (array) $classArray;
 
index bb25fdb806e82c41cee15eed3bc0f5a1d66b94c0..64a402b2a3e2b19522001ae0d38f1019f30edd06 100644 (file)
@@ -29,7 +29,7 @@ class GetterNotFoundException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($dataArray, $code) {
+       public function __construct ($dataArray, $code) {
                // Cast the array
                $dataArray = (array) $dataArray;
 
                // Cast the array
                $dataArray = (array) $dataArray;
 
index 93f4ff81bc0f228ac6018dfc0b110ab4b41f7f34..215d1ab2bb898aa9aed636563a75853ec003c5ef 100644 (file)
@@ -7,7 +7,7 @@
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.org
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.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
  * the Free Software Foundation, either version 3 of the License, or
  * 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
  * the Free Software Foundation, either version 3 of the License, or
@@ -25,14 +25,11 @@ class InvalidArrayCountException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> hat <u>%d</u> Elemente, soll aber <u>%d</u> enthalten!",
                        $array[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> hat <u>%d</u> Elemente, soll aber <u>%d</u> enthalten!",
                        $array[0]->__toString(),
index c74eecbc8699dcca60b9565d511a27849e1b1e50..9dca3438d830e1620b0e8bc96db312d83797b98e 100644 (file)
@@ -29,7 +29,7 @@ class InvalidObjectException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Objekte sind nicht erlaubt. (Objekt: <u>%s</u>)",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Objekte sind nicht erlaubt. (Objekt: <u>%s</u>)",
                        $class->__toString(),
index 17e0d05de85d22a7e92f461dc2d2be7445cd919a..eed1c9b3a897a157be8d64115c7d73f1d50aa0f8 100644 (file)
@@ -29,7 +29,7 @@ class MissingArrayElementsException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Cast the array
                $classArray = (array) $classArray;
 
                // Cast the array
                $classArray = (array) $classArray;
 
index c5b28a4bcd782c1087050954172fd3deb69a8209..771bf7b6e77f7097db7d2975973a657b71cb1818 100644 (file)
@@ -29,7 +29,7 @@ class MissingDecimalsThousandsSeperatorException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($instance, $code) {
+       public function __construct ($instance, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die Dezimal- und Tausendertrenner fehlen!",
                        $instance->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die Dezimal- und Tausendertrenner fehlen!",
                        $instance->__toString(),
index 46670688fdd3082e7a508ab63b9fbef6fe6d9ccb..d8bd326c5055616e4d6196b7b54312970feeb2c6 100644 (file)
@@ -29,7 +29,7 @@ class MissingMethodException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($classArray, $code) {
+       public function __construct (array $classArray, $code) {
                // Cast the array
                $classArray = (array) $classArray;
 
                // Cast the array
                $classArray = (array) $classArray;
 
index b3a68c7c061ffa7d534e975f0e6736d85a2f29c2..dd1e7fa75127fc608903953046025e7d3a0987a3 100644 (file)
@@ -7,7 +7,7 @@
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.org
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.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
  * the Free Software Foundation, either version 3 of the License, or
  * 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
  * the Free Software Foundation, either version 3 of the License, or
@@ -25,14 +25,11 @@ class NoArrayCreatedException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> ist kein erstelltes Objekt.",
                        $array[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> ist kein erstelltes Objekt.",
                        $array[0]->__toString(),
index 9e5942b1ac5cfb5980081e41441321ffc15d91c1..eacfca363511b21b04b975d159c2ff7514b9fc70 100644 (file)
@@ -27,7 +27,7 @@ class NoArrayException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($string, $code) {
+       public function __construct ($string, $code) {
                // Add a message around the missing class
                $message = sprintf("<u>%s</u> ist kein Array!",
                        $string
                // Add a message around the missing class
                $message = sprintf("<u>%s</u> ist kein Array!",
                        $string
index 7f3da772598262156d4f6301c996575cb09c63d7..c1696850002f1ed2b7fb0668755960cb8df48341 100644 (file)
@@ -31,7 +31,7 @@ class NoObjectException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($string, $code) {
+       public function __construct ($string, $code) {
                // Add a message around the missing class
                $message = sprintf("<u>%s</u> ist kein Objekt!",
                        $string
                // Add a message around the missing class
                $message = sprintf("<u>%s</u> ist kein Objekt!",
                        $string
index 45487d5d98b9c4ec3ebccc66a0b0dc1416513f5c..489465a0d6585dcf1c54c0991b97c23f56e0002f 100644 (file)
@@ -29,7 +29,7 @@ class NullPointerException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Eine Instanz/Pointer ist auf <em>null</em> gesetzt.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Eine Instanz/Pointer ist auf <em>null</em> gesetzt.",
                        $class->__toString(),
index 0ec1a4d58c3e18b25b0163c917eb54c1504475c3..9c9a51f4a03244715b9d7ac7bfd529928eb733df 100644 (file)
@@ -7,7 +7,7 @@
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.org
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.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
  * the Free Software Foundation, either version 3 of the License, or
  * 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
  * the Free Software Foundation, either version 3 of the License, or
@@ -25,14 +25,11 @@ class VariableIsNotSetException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $array  Message from the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($array, $code) {
-               // Cast the array
-               $array = (array) $array;
-
+       public function __construct (array $array, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Bei der Initialisierung der Applikation <u>%s</u> wurde keine Variable <u>%s</u> erzeugt.",
                        $array[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Bei der Initialisierung der Applikation <u>%s</u> wurde keine Variable <u>%s</u> erzeugt.",
                        $array[0]->__toString(),
index ed59ac5d7e7db19c53feea9d7a6c8ff361d2afff..e155afe735563beb2037a1fa26867216ff2f62e7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
 <?php
 /**
- * An exception throws when the base path is empty
+ * An exception thrown when the base path is empty
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
@@ -29,7 +29,7 @@ class BasePathIsEmptyException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad ist leer.",
                        $class->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad ist leer.",
                        $class->__toString(),
index 6d32301240d657d9f89d773cc1ab51dd4e96444b..271b447836bbf16a47ebb8aa71695d988e131ece 100644 (file)
@@ -29,7 +29,7 @@ class BasePathIsNoDirectoryException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad <u>%s</u> existiert nicht oder ist eine Datei!",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad <u>%s</u> existiert nicht oder ist eine Datei!",
                        $class[0]->__toString(),
index b95171dbfd4d282bde05072a61d435b3bc93a560..535071766e52ceea1ccaebc62e46d712d5519028 100644 (file)
@@ -29,7 +29,7 @@ class BasePathReadProtectedException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad <u>%s</u> ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad <u>%s</u> ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.",
                        $class[0]->__toString(),
index 7236f6e2d6b2641344c6077346cbef4f7a91028f..08a6d22321089fafab4ba956ee4ad4cf0d5b6b3f 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 /**
 <?php
 /**
- * An exception throws hen the base path string is invalid
+ * An exception thrown hen the base path string is invalid
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.org
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.mxchange.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
  * the Free Software Foundation, either version 3 of the License, or
  * 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
  * the Free Software Foundation, either version 3 of the License, or
@@ -25,11 +25,11 @@ class InvalidBasePathStringException extends FrameworkException {
        /**
         * The constructor
         *
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
-        * @param               $code           Code number for the exception
+        * @param       $class          An array holding our informations
+        * @param       $code           Code number for the exception
         * @return      void
         */
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> ist keine Zeichenkette!",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] <u>%s</u> ist keine Zeichenkette!",
                        $class[0]->__toString(),
index 6dc35afb01da721a85146c9673f029ebae6b87d7..8a3151cc0db682272295a9a8655f8e6e12c5ca2c 100644 (file)
@@ -29,7 +29,7 @@ class InvalidTemplateVariableNameException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die im Template <u>%s</u> gefundene Variable <u>%s</u> ist nicht g&uuml;ltig! G&uuml;ltige Variablennamen sind nur <u>%s</strong>.",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Die im Template <u>%s</u> gefundene Variable <u>%s</u> ist nicht g&uuml;ltig! G&uuml;ltige Variablennamen sind nur <u>%s</strong>.",
                        $class[0]->__toString(),
index 06126039de186ea193a641bf32891222eaa79510..b1d0d14b8164dd0882df65b4a5f8c99d72b44031 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
 <?php
 /**
- * An exception throws when the template type is not supported
+ * An exception thrown when the template type is not supported
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
  *
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
@@ -29,7 +29,7 @@ class UnexpectedTemplateTypeException extends FrameworkException {
         * @param               $code           Code number for the exception
         * @return      void
         */
         * @param               $code           Code number for the exception
         * @return      void
         */
-       public final function __construct ($class, $code) {
+       public function __construct (BaseFrameworkSystem $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Typ <u>%s</u> entspricht nicht dem erwartetem Template-Typ <u>%s</u>.",
                        $class[0]->__toString(),
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Typ <u>%s</u> entspricht nicht dem erwartetem Template-Typ <u>%s</u>.",
                        $class[0]->__toString(),