]> git.mxchange.org Git - mailer.git/blobdiff - index.php
Rewritten to use scanClassPath()
[mailer.git] / index.php
index a6846bf8cc21ee7690c5a8bcf949a348311b1bdf..64aa05f8954136ed77b6e657a824934a3e5901e0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -4,16 +4,16 @@ define('DEVELOPER', true);
 //xdebug_start_trace();
 /**
  * The main class with the entry point to the whole application. This class
- * "emulates" Java(tm)'s entry point call. Additionally it covers local
+ * "emulates" Java's entry point call. Additionally it covers local
  * variables from outside access to prevent possible attacks on uninitialized
  * local variables.
  *
  * But good little boys and girls would always initialize their variables... ;-)
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0.0
+ * @author     Roland Haeder <webmaster@ship-simu.org>
+ * @version    0.0.0
  * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
- * @license            GNU GPL 3.0 or any newer version
+ * @license    GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
@@ -101,6 +101,7 @@ class ApplicationEntryPoint {
                        }
 
                        // Get and prepare backtrace for output
+                       // @TODO Rewrite this to something "generic"
                        $backtraceArray = debug_backtrace();
                        $backtrace = "";
                        foreach ($backtraceArray as $key => $trace) {
@@ -123,13 +124,13 @@ class ApplicationEntryPoint {
                        } // END - if
 
                        // Assign variables
-                       $templateInstance->assignVariable('message', $message);
-                       $templateInstance->assignVariable('code', $code);
-                       $templateInstance->assignVariable('extra', $extraData);
-                       $templateInstance->assignVariable('backtrace', $backtrace);
+                       $templateInstance->assignVariable('message'       , $message);
+                       $templateInstance->assignVariable('code'          , $code);
+                       $templateInstance->assignVariable('extra'         , $extraData);
+                       $templateInstance->assignVariable('backtrace'     , $backtrace);
                        $templateInstance->assignVariable('total_includes', ClassLoader::getInstance()->getTotal());
-                       $templateInstance->assignVariable('total_objects', ObjectFactory::getTotal());
-                       $templateInstance->assignVariable('title', $lang->getMessage('emergency_exit_title'));
+                       $templateInstance->assignVariable('total_objects' , ObjectFactory::getTotal());
+                       $templateInstance->assignVariable('title'         , $lang->getMessage('emergency_exit_title'));
 
                        // Load the template
                        $templateInstance->loadCodeTemplate('emergency_exit');
@@ -160,7 +161,7 @@ class ApplicationEntryPoint {
         * The application's main entry point. This class isolates some local
         * variables which shall not become visible to outside because of security
         * concerns. We are doing this here to "emulate" the well-known entry
-        * point in Java(tm).
+        * point in Java.
         *
         * @return      void
         */