Type-hints fixed, header docs fixed, exceptions deprecated
authorRoland Häder <roland@mxchange.org>
Sat, 21 Jun 2008 14:39:45 +0000 (14:39 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 21 Jun 2008 14:39:45 +0000 (14:39 +0000)
63 files changed:
application/selector/loader.php
application/ship-simu/exceptions/class_ContractAllreadySignedException.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_NoShipyardsConstructedException.php
application/ship-simu/exceptions/class_PersonellListAlreadyCreatedException.php
application/ship-simu/exceptions/class_TotalPriceNotCalculatedException.php
application/ship-simu/loader.php
application/ship-simu/main/class_BasePersonell.php
application/ship-simu/main/class_BaseSimulator.php
application/ship-simu/main/constructions/class_BaseConstruction.php
application/ship-simu/main/drives/class_BaseDrive.php
application/ship-simu/main/parts/class_BaseShipPart.php
application/ship-simu/main/ships/class_BaseShip.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/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/class_BaseDeck.php
inc/classes.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/helper/class_FormOpenedException.php
inc/classes/exceptions/helper/class_InvalidFormNameException.php
inc/classes/exceptions/io/class_InvalidDirectoryResourceException.php
inc/classes/exceptions/io/class_PathIsEmptyException.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/language/class_MissingFileIoHandlerException.php
inc/classes/exceptions/language/class_MissingLanguageHandlerException.php
inc/classes/exceptions/main/class_ClassMismatchException.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_ExceptionNotFoundException.php
inc/classes/exceptions/main/class_InvalidObjectException.php
inc/classes/exceptions/main/class_MissingArrayElementsException.php
inc/classes/exceptions/main/class_MissingMethodException.php
inc/classes/exceptions/main/class_NullPointerException.php
inc/classes/exceptions/main/class_ResponseHeadersAlreadySentException.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_UnsupportedTemplateEngineException.php
inc/classes/main/class_BaseFrameworkSystem.php
inc/classes/main/commands/class_BaseCommand.php
inc/classes/main/controller/class_BaseController.php
inc/classes/main/database/class_BaseDatabaseFrontend.php
inc/classes/main/factories/class_BaseFactory.php
inc/classes/main/resolver/action/class_BaseActionResolver.php
inc/classes/main/resolver/command/class_BaseCommandResolver.php
inc/classes/main/user/class_Guest.php
inc/classes/main/user/class_User.php
inc/classes/middleware/class_BaseMiddleware.php
inc/classes/middleware/compressor/class_CompressorChannel.php

index f11a33a03ebfa5aafb4436e2588a00d0208fc026..bb5c293227b7984e67ec27ca37062783d0bcaa59 100644 (file)
@@ -29,7 +29,6 @@ ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/", $cfg->readConfig('appl
 
 // Clean up the global namespace
 unset($lowerClasses);
-unset($class);
 
 // [EOF]
 ?>
index 76890e9444f1c51e6b25326944a5ac315acf140d..791922220aeb80716d7ee3fbd284e17c0cf8e913 100644 (file)
@@ -23,9 +23,6 @@
  */
 class ContractAllreadySignedException extends FrameworkException {
        public function __construct (array $classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
                // Add a message around the missing class
                $message = sprintf("[%s:] Die Vertragsparteien <span id=\"exception_reason\">%s</span> und <span id=\"exception_reason\">%s</span> haben den Vertrag bereits unterzeichnet!",
                        $classArray[0]->__toString(),
index 14d005128c44bc0d450f6ed3efe6e2b77291af80..31284fce56b8ea79f584c26384ace22db7ef2175 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class EmptyStructuresListException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Die Strukturen-Liste ist leer.",
                        $class->__toString()
index af8f472cce7afe0e694692b8ebb5864dfc91fbd9..db363ae60311d125c4a459d81ae9d26e96e25f95 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class InvalidContractPartnerException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] <span id=\"exception_reason\">%s</span> ist kein g&uuml;tiger Vertragspartner.",
                        $class->__toString(),
index 2187d24401198d760fd954cc79825b1fd072dd32..d3103d74b759a6677ad38b6038ce6a954e4f853f 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class InvalidIDFormatException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Ung&uuml;ltige ID-Nummer &uuml;bergeben.",
                        $class->__toString()
index ecadfa7f81b0ec91eec1484198e2fd7e66f652a0..2785fa5fb7bb8b58e5f82d5d7224f3e6bd53810d 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class ItemNotInPriceListException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[Merchant:] Preis f&uuml;r den Artikel <span id=\"exception_reason\">%s</span> <em><span id=\"exception_reason\">%s</span></em> nicht gefunden.",
                        $class->__toString(),
index 4ef7d2e14380c5c432ce47a7221baf26cc30c889..410f04c5be1a3bf148a9d14b94624bcce84e0686 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class NoShipyardsConstructedException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                if (is_object($class)) {
                        // Add a message around the missing class
                        $message = sprintf("[%s:] Keine Werften gefunden!",
index 88ae2a11ebfe82abc336051452acd450acc6ebfc..d62533644b75d7674fcf492298fdc8f79ad2868d 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class PersonellListAlreadyCreatedException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Die interne Crew-Liste wurde bereits initialisiert.",
                        $class->__toString()
index 2d1b31322a12782d8bea54e87acb928407828f06..3bc3a80bfc28ffcb42a5a32059168026824504cf 100644 (file)
@@ -22,7 +22,7 @@
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class TotalPriceNotCalculatedException extends FrameworkException {
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:] Gesamtpreis ist nicht ermittelbar.",
                        $class->__toString()
index e18c7490cc06ad8f4c5092b9e1ccda0996162b34..b608720601218469705453a0e2ba0bc08c5a15de 100644 (file)
 $cfg = FrameworkConfiguration::getInstance();
 
 // Load all classes for the application
-foreach ($lowerClasses as $class) {
+foreach ($lowerClasses as $className) {
        // Load the application classes
-       ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", $cfg->readConfig('application_path'), $cfg->readConfig('app_name'), $class));
+       ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", $cfg->readConfig('application_path'), $cfg->readConfig('app_name'), $className));
 } // END - if
 
 // Clean up the global namespace
 unset($lowerClasses);
-unset($class);
+unset($className);
 
 // [EOF]
 ?>
index 888061ca770a1a88d66364f699b5f26dbc79ddc9..65df945617962479b9323f096ff9c1253f228216 100644 (file)
@@ -48,9 +48,9 @@ class BasePersonell extends BaseFrameworkSystem implements Personellizer {
        private $salary     = 0.00;
 
        // Constructor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Personal");
index c31a8d04db5d6db7a866c6c71daade44f44bc854..ffdbc66179afa49418ac7b38e2f5294550d7495f 100644 (file)
@@ -42,9 +42,9 @@ class BaseSimulator extends BaseFrameworkSystem {
        );
 
        // Konstruktor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call highest constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set part description and class name
                $this->setObjectDescription("Simulator-Basis-Einheit");
index 3a82a8d1d0277861ed9a8791566086ae63d39a11..44b12867fff362751d54e624395976d2ea0a94ed 100644 (file)
@@ -26,9 +26,9 @@ class BaseConstruction extends BaseSimulator {
        private $draught = 0;
 
        // Konstruktor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Eltern-Konstrutor aufrufen
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Namenlose Landkonstruktion");
index dfb0bbff81aca03506ec5cf71f0a97ac6a93c81e..4891d7354c735101b63cbbfb846b6434ba374e5d 100644 (file)
@@ -30,9 +30,9 @@ class BaseDrive extends BaseSimulator {
        private $numCams    = 0;
 
        // Konstruktor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Namenloser Antrieb");
index 07ecd92d89c28e876267077f27106fefb8f290f5..014b4cba335009f2bb72c595c91055c4b644bf34 100644 (file)
@@ -26,9 +26,9 @@ class BaseShipPart extends BaseSimulator {
        private $price = 0.00;
 
        // Konstruktor
-       protected function __construct($class) {
+       protected function __construct($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Beschreibung
                $this->setObjectDescription("Schiffsteil");
index c04762792229b0228eb0cc01a9e113a79999ac4d..18d2eb80da6eaf3321cfd93b6fc4b6d3413c46f3 100644 (file)
@@ -38,9 +38,9 @@ class BaseShip extends BaseSimulator {
        private $structures = null;
 
        // Namenloses Ship generieren
-       protected function __construct($class) {
+       protected function __construct($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set object description
                $this->setObjectDescription("Allgemeines Schiff");
@@ -122,13 +122,6 @@ class BaseShip extends BaseSimulator {
                                $e->getMessage()
                        ));
                        return false;
-               } catch (ExceptionNotFoundException $e) {
-                       if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Eine Exception wurde nicht gefunden. Details: <strong>%s</strong><br />\n",
-                               __CLASS__,
-                               __LINE__,
-                               $e->getMessage()
-                       ));
-                       return false;
                }
 
                // Instanz im Aufbauten-Array vermerken
index 6b157d910fd80e634709fc1e9b0427dc01d6b644..acac1984b486a5637b7e8d9f0670d694f6490f18 100644 (file)
@@ -26,9 +26,9 @@ class BaseStructure extends BaseSimulator {
        private $price = 0.00;
 
        // Konstruktor (hier keine Exceptions aendern!)
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Schiffsstrukturen");
index f12b984b7459cfd2948a8da53a949f00ceba265d..83e5bc59e3b542853dc509e006698483e58213ad 100644 (file)
@@ -23,9 +23,9 @@
  */
 class BaseCabin extends BaseCabinStructure {
        // Konstruktor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Kabine");
index cda085bdcabce73cadda8601c63793336c03a388..918f66e00b7fac094d7a917bf330c77f66a14d2d 100644 (file)
@@ -33,9 +33,9 @@ class BaseCabinStructure extends BaseStructure {
        private $numBeds = 0;
 
        // Konstruktor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Kabinenstruktur");
index 05cba44df6324aea5e446d8d33e8157a2dd77116..60ec1c712f83de5a3de35586e77cd49ff83c47bc 100644 (file)
@@ -26,9 +26,9 @@ class BaseDeckStructure extends BaseStructure {
        private $numDecks = 0;
 
        // Konstruktor
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Deckstruktur");
index 2a6eef865f0a0ac81b68d4897a4dfcbd4e765369..8fed2e43717967ea1f81de5dd1090ba90c2ccd3e 100644 (file)
@@ -25,9 +25,9 @@ class BaseUpperStructure extends BaseStructure {
        /**
         * Constructor for all super structures on a ship
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Aufbauten");
index 7d564ccea353854bb0c586a868b4d890deee3352..69cc91ceab591facfb5350c16f56f67ee930cb8f 100644 (file)
@@ -25,9 +25,9 @@ class BaseDeck extends BaseDeckStructure {
        /**
         * Constructor for cargo decks in general
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set description
                $this->setObjectDescription("Allgemeines Deck");
index 1c52372f65cc9b5d1bbf614ad9df9f2dec6d11fa..c37f405088ccae86e698b2a27cc1ab40cedc7f4c 100644 (file)
@@ -30,32 +30,32 @@ $lowerClasses = array(
 );
 
 // Load all classes
-foreach ($lowerClasses as $class) {
+foreach ($lowerClasses as $className) {
        // Try to load the framework classes
        try {
-               ClassLoader::getInstance()->loadClasses(sprintf("inc/classes/%s/", $class));
+               ClassLoader::getInstance()->loadClasses(sprintf("inc/classes/%s/", $className));
        } catch (PathIsNoDirectoryException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        } catch (PathIsEmptyException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        } catch (PathReadProtectedException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        } catch (DirPointerNotOpenedException $e) {
                ApplicationEntryPoint::app_die(sprintf("[Main:] Could not load framework classes from path <strong>%s</strong> for the follwing reason: <strong>%s</strong>",
-                       $class
+                       $className
                ));
        }
 }
 
 // Clean up the global namespace
 unset($lowerClasses[3]); // Applications shall not have any middleware
-unset($class);
+unset($className);
 
 ////// Until here the framework classes are loaded //////
 
index 06220529832e1a8c10bd56c7963f2657afca52bb..6eb0f0560cb1fadc8532b675f6c0bed050278e27 100644 (file)
@@ -7,6 +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.ship-simu.org
+ * @deprecated
  * 
  * 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
@@ -25,13 +26,13 @@ class ContainerItemIsNoArrayException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Ein Container-Item ist kein Array.",
+               $message = sprintf("[%s:%d] A container item is not an array.",
                        $class->__toString(),
                        $this->getLine()
                );
index 05334ed1d62a3f1778f999a4128c251b8e8eca8e..9780abe79f79e81ac41a0738f317cf8d114cdcf1 100644 (file)
@@ -7,6 +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.ship-simu.org
+ * @deprecated
  * 
  * 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
@@ -25,13 +26,13 @@ class ContainerItemIsNullException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Ein Container-Item ist auf <em>null</em> gesetzt.",
+               $message = sprintf("[%s:%d] A container item is <em>null</em>.",
                        $class->__toString(),
                        $this->getLine()
                );
index 33232c08a9a24168876fb8712a4da8f8cc6fca1f..ec4539b232e086ffc56e717b386a2eb07a59f7fe 100644 (file)
@@ -7,6 +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.ship-simu.org
+ * @deprecated
  * 
  * 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
@@ -25,13 +26,13 @@ class ContainerMaybeDamagedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Ein Container ist m&ouml;glicherweise besch&auml;digt.",
+               $message = sprintf("[%s:%d] A container is possibly damaged.",
                        $class->__toString(),
                        $this->getLine()
                );
index d9de2eef94fa05aa81f7b45728b968a7a1649581..56c7ff8bc57d9cac78b6aa2fa4baa7104d9f77b6 100644 (file)
@@ -25,13 +25,13 @@ class SavePathIsEmptyException extends DatabaseException {
        /**
         * The constructor
         *
-        * @param       $message        Message from the exception
-        * @param       $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Der Speicherpfad ist leer.",
+               $message = sprintf("[%s:%d] Save path is empty.",
                        $class->__toString(),
                        $this->getLine()
                );
index c2aafbd207d7219ea2669bd45b8562f9da8dd48f..48662ae8e9edd01e6d7ff084bdbdb0616a707c1e 100644 (file)
@@ -26,16 +26,16 @@ class FormOpenedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          Class throwing the exception
-        * @param               $code                   Code number for the exception
+        * @param               $helperInstance         Class throwing the exception
+        * @param               $code                           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (BaseHelper $helperInstance, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Form is not yet closed. Close it with method <u>%s::addFormTag()</u> and add no parameters.",
-                       $class->__toString(),
+                       $helperInstance->__toString(),
                        $this->getLine(),
-                       $class->__toString()
+                       $helperInstance->__toString()
                );
 
                // Call parent constructor
index 00c36a25f10c5080a8342d42cd348344ca36df63..f6bab92f5fde6c014b3d32edfa0dc7049108f8ce 100644 (file)
@@ -25,14 +25,14 @@ class InvalidFormNameException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          Class throwing the exception
-        * @param               $code           Code number for the exception
+        * @param               $helperInstance         Class throwing the exception
+        * @param               $code                           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (BaseHelper $helperInstance, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Form name not set.",
-                       $class->__toString(),
+                       $helperInstance->__toString(),
                        $this->getLine()
                );
 
index 2dbe65cee5c96b5fbd779622697041a0bb4f2b1b..d5f40f2c8297da5bad7d9f55db29c6adc724f68a 100644 (file)
@@ -25,20 +25,16 @@ class InvalidDirectoryResourceException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               if (is_null($class)) {
-                       $message = "[???:] Ung&uuml;tige Verzeichnis-Resource.";
-               } elseif (is_object($class)) {
-                       $message = sprintf("[%s:%d] Ung&uuml;tige Verzeichnis-Resource.",
-                               $class->__toString(),
-                               $this->getLine()
-                       );
-               }
+               $message = sprintf("[%s:%d] Has an invalid directory resource.",
+                       $class->__toString(),
+                       $this->getLine()
+               );
 
                // Call parent constructor
                parent::__construct($message, $code);
index b8a286846f54a8e637cb26aa3681a6d8d3553322..77e402e63017c49159847cd4d3ff213a76c5592b 100644 (file)
@@ -25,20 +25,16 @@ class PathIsEmptyException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               if (is_null($class)) {
-                       $message = "[???:] Der Verzeichnisname ist leer.";
-               } elseif (is_object($class)) {
-                       $message = sprintf("[%s:%d] Der Verzeichnisname ist leer.",
-                               $class->__toString(),
-                               $this->getLine()
-                       );
-               }
+               $message = sprintf("[%s:%d] Directory path is empty.",
+                       $class->__toString(),
+                       $this->getLine()
+               );
 
                // Call parent constructor
                parent::__construct($message, $code);
index 3775bc4b89b311c068f321a25a980f765e36034f..c49fb28aca570fa124b143d6a0a4f0ed5fd881a5 100644 (file)
@@ -25,16 +25,16 @@ class InvalidLanguagePathStringException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $classArray             Array holding exception data
+        * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] <span id=\"exception_reason\">%s</span> ist keine Zeichenkette!",
-                       $class[0]->__toString(),
+               $message = sprintf("[%s:%d] <span id=\"exception_reason\">%s</span> is not a string with path!",
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1]
+                       $classArray[1]
                );
 
                // Call parent constructor
index cd38561c3ae1c6cf32928df254667476d4f64c90..89695ae0b367ac8e2bef6dae9ba8024f5b96ba90 100644 (file)
@@ -25,13 +25,13 @@ class LanguagePathIsEmptyException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Der Sprachen-Basispfad ist leer.",
+               $message = sprintf("[%s:%d] Language base path is empty.",
                        $class->__toString(),
                        $this->getLine()
                );
index f735d59bc9b20cd805775385a70e399355844403..2e94516c4ca3a6ad0c4cd0c2100b7db64e2377c8 100644 (file)
@@ -25,16 +25,16 @@ class LanguagePathIsNoDirectoryException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $classArray             Array holding exception data
+        * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Sprach-Basispfad <span id=\"exception_reason\">%s</span> existiert nicht oder ist eine Datei!",
-                       $class[0]->__toString(),
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1]
+                       $classArray[1]
                );
 
                // Call parent constructor
index b67c7977a75c5ad2876e4d353dd89a43f5744de2..743409ace1387156b411fa97bdc608a4ef95ca0f 100644 (file)
@@ -25,16 +25,16 @@ class LanguagePathReadProtectedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Array holding exception data
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Der Sprach-Basispfad <span id=\"exception_reason\">%s</span> ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.",
-                       $class[0]->__toString(),
+               $message = sprintf("[%s:%d] Base language path <span id=\"exception_reason\">%s</span> is read-protected. Please change access rights (CHMOD).",
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1]
+                       $classArray[1]
                );
 
                // Call parent constructor
index ea92f6de3b660e1d6551dfb0a7ee6789a5355ea0..ad3b50a48cf1154f555c32f62f8a01382ccc4037 100644 (file)
@@ -25,11 +25,11 @@ class MissingFileIoHandlerException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message        Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] File i/o sub-system not initialized!",
                        $class->__toString(),
index 9511e21692306793db92e38105a7d7ea6eb0fca9..a909a505332e918e57c459fe735c0e54a6c5e44a 100644 (file)
@@ -25,11 +25,11 @@ class MissingLanguageHandlerException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message        Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Language sub-system not initialized!",
                        $class->__toString(),
index a2f009b13253d7958c9448a74f6b493ad7a3c559..9ea58f744f515fd9fed3652bc532dbf77c9f7513 100644 (file)
@@ -25,13 +25,13 @@ class ClassMismatchException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param               $classArray             Array holding the exception informations
+        * @param               $code                   Code number for the exception
         * @return      void
         */
        public function __construct (array $classArray, $code) {
                // Add a message around the missing class
-               $message = sprintf("Die Klasse <span id=\"exception_reason\">%s</span> ist ungleich <span id=\"exception_reason\">%s</span>.",
+               $message = sprintf("The class <span id=\"exception_reason\">%s</span> does not match class <span id=\"exception_reason\">%s</span>.",
                        $classArray[0],
                        $classArray[1]
                );
index f441ef44316b5b864ad0da7b959c24c321ec91bb..d0ce8d98e154c542a9404283d728426e761116f4 100644 (file)
@@ -25,8 +25,8 @@ class ConfigEntryIsEmptyException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message        Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
        public function __construct (FrameworkConfiguration $class, $code) {
index 88a34617f9d6800a6bd711290f515a573c4a0d1c..324e991ffe31360056149eedb897c9cc0cadd381 100644 (file)
@@ -25,14 +25,11 @@ class ConfigEntryNotFoundException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $classArray             Array with class
+        * @param               $classArray             Array with exception data
         * @param               $code                   Code number for the exception
         * @return      void
         */
        public function __construct (array $classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Configuration entry <span id=\"exception_reason\">%s</span> not found.",
                        $classArray[0],
index 7205bfcb4d244541ed983241d9d456bf5614cef5..74bd7c2cb7b3d930b774376ff751ac3d2c2fe7a9 100644 (file)
@@ -25,14 +25,14 @@ class DimNotFoundInArrayException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                if (is_object($class)) {
                        // Add a message around the missing class
-                       $message = sprintf("[%s:%d] Abmasse konnten nicht extrahiert werden!",
+                       $message = sprintf("[%s:%d] Dimensions not found in array, array is invalid!",
                                $class->__toString(),
                                $this->getLine()
                        );
index a52370029dcd0ad744c9710c36a4e1e1d5e6b4f6..524cfeae5707ef141483f637158f5c046374df9b 100644 (file)
@@ -25,16 +25,13 @@ class ExceptionNotFoundException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $classArray             Array with exception data
+        * @param       $code                   Code number for the exception
         * @return      void
         */
        public function __construct (array $classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Exception <span id=\"exception_reason\">%s</span> nicht gefunden.",
+               $message = sprintf("[%s:%d] Exception <span id=\"exception_reason\">%s</span> not found.",
                        $classArray[0],
                        $this->getLine(),
                        $classArray[1]
index 9d643a01a97abde7950597a3b48572286293bce6..094302c60366fbf0f14cb179ea2d7ac7c6290384 100644 (file)
@@ -25,13 +25,13 @@ class InvalidObjectException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing the exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Objekte sind nicht erlaubt. (Objekt: <span id=\"exception_reason\">%s</span>)",
+               $message = sprintf("[%s:%d] Objects are not allowed here. (Object: <span id=\"exception_reason\">%s</span>)",
                        $class->__toString(),
                        $this->getLine(),
                        $class->getObjectDescription()
index 1c9306085181b643220b38c155ce46578462996a..6868bd83fc54c9c1e5961f122699b1932f4f609b 100644 (file)
@@ -25,14 +25,11 @@ class MissingArrayElementsException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param               $classArray             Array with exception data
+        * @param               $code                   Code number for the exception
         * @return      void
         */
        public function __construct (array $classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
                // Extract all elements
                $elements = "";
                if ((isset($classArray[2])) && (is_array($classArray[2]))) {
@@ -44,7 +41,7 @@ class MissingArrayElementsException extends FrameworkException {
                }
 
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Das Array <u>%s()</u> keine Elemente <span id=\"exception_reason\">%s</span> auf!",
+               $message = sprintf("[%s:%d] Array <u>%s()</u> Does not have these elements: <span id=\"exception_reason\">%s</span>",
                        $classArray[0]->__toString(),
                        $this->getLine(),
                        $classArray[1],
index 65eb60d07e9569e02af02a51350657a1a5475a22..c51e1f5b47aeee0f5d6bcba97ef8cf88702fafd7 100644 (file)
@@ -7,6 +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.ship-simu.org
+ * @deprecated
  * 
  * 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
@@ -25,16 +26,13 @@ class MissingMethodException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param               $classArray             Array holding the exception data
+        * @param               $code                   Code number for the exception
         * @return      void
         */
        public function __construct (array $classArray, $code) {
-               // Cast the array
-               $classArray = (array) $classArray;
-
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Weisst keine Methode <u>%s()</u> auf!",
+               $message = sprintf("[%s:%d] This class has no method <u>%s()</u>!",
                        $classArray[0]->__toString(),
                        $this->getLine(),
                        $classArray[1]
index 42ed410f3ed0c33dd8146d4f5bf04967c6ff8974..b3cb0c75f26b5416fcb05ca20e01fc4e204035db 100644 (file)
@@ -25,13 +25,13 @@ class NullPointerException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Eine Instanz/Pointer ist auf <em>null</em> gesetzt.",
+               $message = sprintf("[%s:%d] An object instance is set to <em>null</em>.",
                        $class->__toString(),
                        $this->getLine()
                );
index 16e36e16574f6a4f2d1fb516b31271ae3324289c..e4b16b4c99c0d47e4f68d7258eb07d13556bed18 100644 (file)
@@ -25,11 +25,11 @@ class ResponseHeadersAlreadySentException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $message                Message from the exception
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Headers are already sent!",
                        $class->__toString(),
index 78dd8571a51735521eb35fedb0305e9eb6f4ead1..432078b08484c28ffc992e69237e999394fea98d 100644 (file)
@@ -25,13 +25,13 @@ class BasePathIsEmptyException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this exception
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Der Template-Basispfad ist leer.",
+               $message = sprintf("[%s:%d] Template path is empty.",
                        $class->__toString(),
                        $this->getLine()
                );
index f286d2bde4d2ccd407d85652be80148eea5dba4f..22e4254ad30f219f5af785ed46073126432970b4 100644 (file)
@@ -25,16 +25,16 @@ class BasePathIsNoDirectoryException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
-        * @param               $code           Code number for the exception
+        * @param       $classArray             An array holding our informations
+        * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad <span id=\"exception_reason\">%s</span> existiert nicht oder ist eine Datei!",
-                       $class[0]->__toString(),
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1]
+                       $classArray[1]
                );
 
                // Call parent constructor
index f5105b43ddfdbf09653111ee413205218c32b297..1bfbac5b0430c7d0e76da4b56d3655b117fc19d0 100644 (file)
@@ -25,16 +25,16 @@ class BasePathReadProtectedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
-        * @param               $code           Code number for the exception
+        * @param       $classArray             An array holding our informations
+        * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
                $message = sprintf("[%s:%d] Der Template-Basispfad <span id=\"exception_reason\">%s</span> ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.",
-                       $class[0]->__toString(),
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1]
+                       $classArray[1]
                );
 
                // Call parent constructor
index 9a2dbcf532c50b207f32dca908b6583fc3950ded..9b1ce48a7eb8a069ef9586e3885c310f281e8692 100644 (file)
@@ -25,16 +25,16 @@ class InvalidBasePathStringException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $class  An array holding our informations
-        * @param       $code   Code number for the exception
+        * @param       $classArray             Array holding exception data
+        * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (array $classArray, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] <span id=\"exception_reason\">%s</span> ist keine Zeichenkette!",
-                       $class[0]->__toString(),
+               $message = sprintf("[%s:%d] <span id=\"exception_reason\">%s</span> is not a string with a base path!",
+                       $classArray[0]->__toString(),
                        $this->getLine(),
-                       $class[1]
+                       $classArray[1]
                );
 
                // Call parent constructor
index 46d15190a33cbe74b5e2491505e28cb1958218dc..596fb5beb7d5f1f0f9c2d161b52a3db9462668a8 100644 (file)
@@ -25,13 +25,13 @@ class UnsupportedTemplateEngineException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param               $class          An array holding our informations
-        * @param               $code           Code number for the exception
+        * @param       $class  Class throwing this class
+        * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (BaseFrameworkSystem $class, $code) {
+       public function __construct (FrameworkInterface $class, $code) {
                // Add a message around the missing class
-               $message = sprintf("Template-Engine %s wird nicht unterst&uuml;tzt.",
+               $message = sprintf("Template-Engine %s not (yet) supported.",
                        $class->__toString()
                );
 
index 48d9e3a0eb405c0de8d70e00b42799270ac5e1ca..7a738d6b26f9584dd5053c9e4acf90db922a6c65 100644 (file)
@@ -176,16 +176,17 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * Private super constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Set real class
-               $this->setRealClass($class);
+               $this->setRealClass($className);
 
                // Initialize the class if the registry is there
                if ((class_exists('Registry')) && (Registry::isInitialized() === false)) {
                        $this->initInstance();
-               }
+               } // END - if
        }
 
        /**
@@ -201,7 +202,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                                $this->getDebugInstance()->output(sprintf("[%s:] Das Objekt <strong>%s</strong> wird zerst&ouml;rt.<br />\n",
                                        __CLASS__, $this->__toString()
                                ));
-                       }
+                       } // END - if
 
                        // Destroy all informations about this class but keep some text about it alive
                        $this->setObjectDescription(sprintf("Entferntes Objekt <em>%s</em>", $this->__toString()));
@@ -270,6 +271,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        $argsString = sprintf("!INVALID:%s!", $args);
                }
 
+               // Output stub message
                $this->getDebugInstance()->output(sprintf("[%s::%s] Stub! Args: %s",
                        $this->__toString(),
                        $methodName,
@@ -687,10 +689,10 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * Validate if given object is the same as current
         *
-        * @param               $object An object instance for comparison with this class
+        * @param       $object An object instance for comparison with this class
         * @return      boolean The result of comparing both's unique ID
         */
-       public final function equals ($object) {
+       public final function equals (FrameworkInterface $object) {
                return ($this->getUniqueID() == $object->getUniqueID());
        }
 
@@ -698,8 +700,8 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         * Compare if both simulation part description and class name matches
         * (shall be enougth)
         *
-        * @param               $itemInstance   An object instance to an other class
-        * @return      boolean         The result of comparing class name simulation part description
+        * @param       $itemInstance   An object instance to an other class
+        * @return      boolean                 The result of comparing class name simulation part description
         */
        public function itemMatches ($itemInstance) {
                return (
@@ -714,11 +716,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * Compare class name of this and given class name
         *
-        * @param               $class  The class name as string from the other class
+        * @param               $className      The class name as string from the other class
         * @return      boolean The result of comparing both class names
         */
-       public final function isClass ($class) {
-               return ($this->__toString() == $class);
+       public final function isClass ($className) {
+               return ($this->__toString() == $className);
        }
 
        /**
index 505d8adab68b3a7ba50f073614952ca01da88970..ac8db97be4721f4cdcc83537e6f205daadd97c0e 100644 (file)
@@ -30,11 +30,12 @@ class BaseCommand extends BaseFrameworkSystem {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
        }
 
        /**
index b2951f51e75fa7395297d14bff2963b5ea02c8d3..1686f42f7c23238c475019c33017ad2df808915b 100644 (file)
@@ -37,11 +37,12 @@ class BaseController extends BaseFrameworkSystem implements Registerable {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Clean up a little
                $this->removeNumberFormaters();
index 56041e6373b59c98684b7857f5ca46588b981a3e..c53fb4e2feee1d9bf4457242ed3dfd3aa48666c0 100644 (file)
@@ -34,11 +34,12 @@ abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implements Datab
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct($class) {
+       protected function __construct($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Clean up a little
                $this->removeNumberFormaters();
index 68a856d3958bec8d70fd3fe63291e88447919f43..1ba8f84d227e0acd39b0e66c19b270c164129513 100644 (file)
@@ -30,12 +30,12 @@ class BaseFactory extends BaseFrameworkSystem {
        /**
         * Protected constructor
         *
-        * @param       $class  Name of the real class (not BaseFactory)
+        * @param       $className      Name of the real class (not BaseFactory)
         * @return      void
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Clean up a little
                $this->removeNumberFormaters();
index 2de5ec712bbf3a49eb66f900b2ede84645335e67..83aa964ac1b7e9f4793bcecfbf42cf7997d827b1 100644 (file)
@@ -35,6 +35,7 @@ class BaseActionResolver extends BaseResolver {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
        protected function __construct ($className) {
index 34ccf719dba0e3924293630934c5c3db77a1ba10..4ad1d3edf829de0d74aa762e0be913c445b48c2a 100644 (file)
@@ -40,6 +40,7 @@ class BaseCommandResolver extends BaseResolver {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
        protected function __construct ($className) {
index c5ea22584dd33ca7640c3acd13b4d7dc003d1348..d07317a4b1b3809f361a904b70d78decf5862aeb 100644 (file)
@@ -45,14 +45,15 @@ class Guest extends BaseFrameworkSystem implements ManageableUser, Registerable
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($class = "") {
+       protected function __construct ($className = "") {
                // Is the class name empty? Then this is not a specialized user class
-               if (empty($class)) $class = __CLASS__;
+               if (empty($className)) $className = __CLASS__;
 
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set part description
                $this->setObjectDescription("Generic user class");
index 6e9d8f75578546f10c5dd7c8a9094142606f575a..3bc83881937f25bef278f3b72b95df6841d11be9 100644 (file)
@@ -45,14 +45,15 @@ class User extends BaseFrameworkSystem implements ManageableUser, Registerable {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($class = "") {
+       protected function __construct ($className = "") {
                // Is the class name empty? Then this is not a specialized user class
-               if (empty($class)) $class = __CLASS__;
+               if (empty($className)) $className = __CLASS__;
 
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Set part description
                $this->setObjectDescription("Generic user class");
index 472aa8ba717bb14d1feeed04d43a9fee9ad483df..79e1d0c6ef2a18c6096708ff3fc27e548905d120 100644 (file)
@@ -25,11 +25,12 @@ class BaseMiddleware extends BaseFrameworkSystem {
        /**
         * Protected constructor
         *
+        * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($class) {
+       protected function __construct ($className) {
                // Call parent constructor
-               parent::__construct($class);
+               parent::__construct($className);
 
                // Clean up a little
                $this->removeNumberFormaters();
index 346538024f1b8d6ac3f8ff8e6f615bba785bfe9a..2981804b298cf6e4c16499d853847ee870379828 100644 (file)
@@ -71,10 +71,10 @@ class CompressorChannel extends BaseMiddleware implements Registerable {
                                        // Get the compressor's name. That's why you must name
                                        // your files like your classes and also that's why you
                                        // must keep on class in one file.
-                                       $class = substr($dir, 6, -4);
+                                       $className = substr($dir, 6, -4);
 
                                        // Get an instance from our object factory
-                                       $tempInstance = ObjectFactory::createObjectByName($class);
+                                       $tempInstance = ObjectFactory::createObjectByName($className);
 
                                        // Set the compressor
                                        $cInstance->setCompressor($tempInstance);