// Clean up the global namespace
unset($lowerClasses);
-unset($class);
// [EOF]
?>
*/
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(),
* 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()
* 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ütiger Vertragspartner.",
$class->__toString(),
* 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ültige ID-Nummer übergeben.",
$class->__toString()
* 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ür den Artikel <span id=\"exception_reason\">%s</span> <em><span id=\"exception_reason\">%s</span></em> nicht gefunden.",
$class->__toString(),
* 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!",
* 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()
* 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()
$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]
?>
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");
);
// 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");
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");
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");
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");
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");
$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
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");
*/
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");
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");
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");
/**
* 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");
/**
* 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");
);
// 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 //////
* @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
/**
* 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()
);
* @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
/**
* 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()
);
* @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
/**
* 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öglicherweise beschädigt.",
+ $message = sprintf("[%s:%d] A container is possibly damaged.",
$class->__toString(),
$this->getLine()
);
/**
* 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()
);
/**
* 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
/**
* 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()
);
/**
* 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ütige Verzeichnis-Resource.";
- } elseif (is_object($class)) {
- $message = sprintf("[%s:%d] Ungü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);
/**
* 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);
/**
* 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
/**
* 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()
);
/**
* 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
/**
* 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ützt! Bitte Zugriffsrechte (CHMOD) ä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
/**
* 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(),
/**
* 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(),
/**
* 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]
);
/**
* 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) {
/**
* 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],
/**
* 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()
);
/**
* 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]
/**
* 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()
/**
* 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]))) {
}
// 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],
* @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
/**
* 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]
/**
* 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()
);
/**
* 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(),
/**
* 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()
);
/**
* 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
/**
* 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ützt! Bitte Zugriffsrechte (CHMOD) ändern.",
- $class[0]->__toString(),
+ $classArray[0]->__toString(),
$this->getLine(),
- $class[1]
+ $classArray[1]
);
// Call parent constructor
/**
* 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
/**
* 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ützt.",
+ $message = sprintf("Template-Engine %s not (yet) supported.",
$class->__toString()
);
/**
* 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
}
/**
$this->getDebugInstance()->output(sprintf("[%s:] Das Objekt <strong>%s</strong> wird zerstö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()));
$argsString = sprintf("!INVALID:%s!", $args);
}
+ // Output stub message
$this->getDebugInstance()->output(sprintf("[%s::%s] Stub! Args: %s",
$this->__toString(),
$methodName,
/**
* 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());
}
* 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 (
/**
* 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);
}
/**
/**
* 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);
}
/**
/**
* 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();
/**
* 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();
/**
* 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();
/**
* Protected constructor
*
+ * @param $className Name of the class
* @return void
*/
protected function __construct ($className) {
/**
* Protected constructor
*
+ * @param $className Name of the class
* @return void
*/
protected function __construct ($className) {
/**
* 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");
/**
* 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");
/**
* 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();
// 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);