type hints added, unnessarry casts removed
authorRoland Häder <roland@mxchange.org>
Sat, 8 Mar 2008 13:47:54 +0000 (13:47 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 8 Mar 2008 13:47:54 +0000 (13:47 +0000)
44 files changed:
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 4ff32f0726ce112bb9b660d0bdeeb7887e8c2fcb..2ca8d613e9a682c8282ee82adf229d5803942265 100644 (file)
@@ -25,14 +25,11 @@ class MismatchingCompressorsException extends FrameworkException {
        /**
         * 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
         */
-       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(),
index a5e3468157cc3d2fa6c92114a849db81fe2ea566..405c39b0de243cbd44d38da01bf85c89b9579456 100644 (file)
@@ -29,7 +29,7 @@ class ContainerItemIsNoArrayException extends FrameworkException {
         * @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(),
index bffb9b08d738fbfeda113800c240644c86965ef8..2cfafc4a0162b0f04a0b4aa9e73e93b277c6c407 100644 (file)
@@ -29,7 +29,7 @@ class ContainerItemIsNullException extends FrameworkException {
         * @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(),
index 417e49d2e2737034eec66935534a74c0fa663d84..56686983e852da6caa45a239e0aff284f99f58f2 100644 (file)
@@ -29,7 +29,7 @@ class ContainerMaybeDamagedException extends FrameworkException {
         * @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(),
index ddc60e87904e6ac1595bb2ba428ded6de856f4ed..efae626f91d73b6e045b08c9dcaf03db3dd2a8dd 100644 (file)
@@ -29,7 +29,7 @@ class SavePathIsEmptyException extends FrameworkException {
         * @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(),
index 0eabf4e52e025aaa8d520f1217f24ad136538a52..964a8d46e59bfa99377579c89d059162fd12720e 100644 (file)
@@ -29,7 +29,7 @@ class SavePathIsNoDirectoryException extends FrameworkException {
         * @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);
 
index 678ecd005516f87b84806ddaf6a3be6e0af329f8..26b86b34ed75dd4f180f8a535e1c89d62247f8d6 100644 (file)
@@ -29,7 +29,7 @@ class SavePathReadProtectedException extends FrameworkException {
         * @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);
 
index 0e7ca79c94a344a7113b652f8964e9cff7841fd3..4ad27906b454d61038d1513787e39f30740e5caf 100644 (file)
@@ -29,7 +29,7 @@ class SavePathWriteProtectedException extends FrameworkException {
         * @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);
 
index 5c415e16779f0049069aeffaa31928f98e6130ed..060b01709529dab432c17049bf30382f08b8f43e 100644 (file)
@@ -29,7 +29,7 @@ class DirPointerNotOpenedException extends FrameworkException {
         * @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);
 
index fd4e541788324ea4097c6683cfa8aa86daf22dbe..9c7a8a8914b584173b9e501ae00a6307beb23cf0 100644 (file)
@@ -29,7 +29,7 @@ class FilePointerNotOpenedException extends FrameworkException {
         * @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);
 
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
- * 
+ *
  * 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
         *
-        * @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
         */
-       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(),
index fc48bebbcf169dd7c74aa8b850ee83d88fc5eac3..668b0f0e41b0585acd9c628d901d78e077dd89c9 100644 (file)
@@ -29,7 +29,7 @@ class InvalidDirectoryResourceException extends FrameworkException {
         * @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.";
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
- * 
+ *
  * 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
         *
-        * @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
         */
-       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(),
index ffabd5c3d70e62a716892809bb09ac021d72c492..4c93d20e1010c95023f4ac0b6ba6dc4103f83de3 100644 (file)
@@ -29,7 +29,7 @@ class PathIsEmptyException extends FrameworkException {
         * @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.";
index 6b0a531105edd268d173c7ff3d9317208cb1b611..2ff79ba9341cee2d54a891fe5c62891e98f9b4a2 100644 (file)
@@ -29,7 +29,7 @@ class PathIsNoDirectoryException extends FrameworkException {
         * @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);
 
index 530f16fa9f4de66043ff277f04ae19fe7ea13fdc..70ea7c0199e0239931d7d75b26cdc96fbf1e5dec 100644 (file)
@@ -29,7 +29,7 @@ class PathReadProtectedException extends FrameworkException {
         * @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);
 
index 24674cd3350e218d60b565c0544d088da4dd796f..5161c23d8b8950a989c8c03e7631c52a0c8d2e12 100644 (file)
@@ -29,7 +29,7 @@ class InvalidLanguagePathStringException extends FrameworkException {
         * @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(),
index 4e2cbf8283b43a51eea947ebdfada2ede1c8734c..653f4c0e9333b16bf721ceefd7d545e8883abc8c 100644 (file)
@@ -29,7 +29,7 @@ class LanguagePathIsEmptyException extends FrameworkException {
         * @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(),
index 1f0f53dae0ddd992d7481db2f0e4abc5f3f9ea89..6a672af7aaf14847d574ea62a8abf529d4f183a6 100644 (file)
@@ -29,7 +29,7 @@ class LanguagePathIsNoDirectoryException extends FrameworkException {
         * @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(),
index 72bf450f870a49deee1980adc57e0c23e2615edc..ccfd2c37177383af0e895bcbf0a9dc2b57ee5a40 100644 (file)
@@ -29,7 +29,7 @@ class LanguagePathReadProtectedException extends FrameworkException {
         * @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(),
index b8079c1f8aecab0f2454909921103dfff42d4eb6..b4820015719a3685ca76535ea4a451f176022ba6 100644 (file)
@@ -29,7 +29,7 @@ class ClassMismatchException extends FrameworkException {
         * @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],
index a91f6e70b7e3ba0e052b0039c38aaa9d6d37acb8..b7242e72768cb130be63625afa4e9f8a8f22df8a 100644 (file)
@@ -29,7 +29,7 @@ class ClassNotFoundException extends FrameworkException {
         * @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);
 
index 2661bf04518306fd7ca3426b7e85b928475f1b3e..df1891566a156d5365e88a3dcd68f092552b5f21 100644 (file)
@@ -29,7 +29,7 @@ class ConfigEntryIsEmptyException extends FrameworkException {
         * @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,
index b83567f55d64bc337b8c9728b0891de02dc59d96..b753bdf93a7a75261340060e77856eeb94047514 100644 (file)
@@ -29,7 +29,7 @@ class ConfigEntryNotFoundException extends FrameworkException {
         * @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;
 
index f65a01afbc116dc062d2aee9e740a381da5b03c0..4e0bcfb714268dbeda1018a0adcd4e51ed933b17 100644 (file)
@@ -29,7 +29,7 @@ class DimNotFoundInArrayException extends FrameworkException {
         * @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!",
index d8123ebe0d46f7f8361e33614a0bf31b4b5df928..af6ae2c9154e9fbbe4d05ac7aee878e7aa8facf2 100644 (file)
@@ -30,7 +30,7 @@ class ExceptionNotChangedException extends FrameworkException {
         * @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,
index 131e732cb35fea5a06c3c7f122d5de4191722a75..33867ae4d2d2718d7ed1e70828cfba6452b87b56 100644 (file)
@@ -29,7 +29,7 @@ class ExceptionNotFoundException extends FrameworkException {
         * @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;
 
index bb25fdb806e82c41cee15eed3bc0f5a1d66b94c0..64a402b2a3e2b19522001ae0d38f1019f30edd06 100644 (file)
@@ -29,7 +29,7 @@ class GetterNotFoundException extends FrameworkException {
         * @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;
 
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
- * 
+ *
  * 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
         *
-        * @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
         */
-       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(),
index c74eecbc8699dcca60b9565d511a27849e1b1e50..9dca3438d830e1620b0e8bc96db312d83797b98e 100644 (file)
@@ -29,7 +29,7 @@ class InvalidObjectException extends FrameworkException {
         * @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(),
index 17e0d05de85d22a7e92f461dc2d2be7445cd919a..eed1c9b3a897a157be8d64115c7d73f1d50aa0f8 100644 (file)
@@ -29,7 +29,7 @@ class MissingArrayElementsException extends FrameworkException {
         * @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;
 
index c5b28a4bcd782c1087050954172fd3deb69a8209..771bf7b6e77f7097db7d2975973a657b71cb1818 100644 (file)
@@ -29,7 +29,7 @@ class MissingDecimalsThousandsSeperatorException extends FrameworkException {
         * @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(),
index 46670688fdd3082e7a508ab63b9fbef6fe6d9ccb..d8bd326c5055616e4d6196b7b54312970feeb2c6 100644 (file)
@@ -29,7 +29,7 @@ class MissingMethodException extends FrameworkException {
         * @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;
 
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
- * 
+ *
  * 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
         *
-        * @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
         */
-       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(),
index 9e5942b1ac5cfb5980081e41441321ffc15d91c1..eacfca363511b21b04b975d159c2ff7514b9fc70 100644 (file)
@@ -27,7 +27,7 @@ class NoArrayException extends FrameworkException {
         * @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
index 7f3da772598262156d4f6301c996575cb09c63d7..c1696850002f1ed2b7fb0668755960cb8df48341 100644 (file)
@@ -31,7 +31,7 @@ class NoObjectException extends FrameworkException {
         * @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
index 45487d5d98b9c4ec3ebccc66a0b0dc1416513f5c..489465a0d6585dcf1c54c0991b97c23f56e0002f 100644 (file)
@@ -29,7 +29,7 @@ class NullPointerException extends FrameworkException {
         * @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(),
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
- * 
+ *
  * 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
         *
-        * @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
         */
-       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(),
index ed59ac5d7e7db19c53feea9d7a6c8ff361d2afff..e155afe735563beb2037a1fa26867216ff2f62e7 100644 (file)
@@ -1,6 +1,6 @@
 <?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
@@ -29,7 +29,7 @@ class BasePathIsEmptyException extends FrameworkException {
         * @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(),
index 6d32301240d657d9f89d773cc1ab51dd4e96444b..271b447836bbf16a47ebb8aa71695d988e131ece 100644 (file)
@@ -29,7 +29,7 @@ class BasePathIsNoDirectoryException extends FrameworkException {
         * @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(),
index b95171dbfd4d282bde05072a61d435b3bc93a560..535071766e52ceea1ccaebc62e46d712d5519028 100644 (file)
@@ -29,7 +29,7 @@ class BasePathReadProtectedException extends FrameworkException {
         * @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(),
index 7236f6e2d6b2641344c6077346cbef4f7a91028f..96c3e33b7847c18c56f904522bbc35c0aaae02d2 100644 (file)
@@ -1,6 +1,6 @@
 <?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
@@ -29,7 +29,7 @@ class InvalidBasePathStringException extends FrameworkException {
         * @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(),
index 6dc35afb01da721a85146c9673f029ebae6b87d7..8a3151cc0db682272295a9a8655f8e6e12c5ca2c 100644 (file)
@@ -29,7 +29,7 @@ class InvalidTemplateVariableNameException extends FrameworkException {
         * @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(),
index 06126039de186ea193a641bf32891222eaa79510..b1d0d14b8164dd0882df65b4a5f8c99d72b44031 100644 (file)
@@ -1,6 +1,6 @@
 <?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
@@ -29,7 +29,7 @@ class UnexpectedTemplateTypeException extends FrameworkException {
         * @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(),