]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/class_BaseFrameworkSystem.php
Simple exception handler and error handler added, profile update added with stubs
[shipsimu.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 3484a4eb5a9dc5724e37525bfe81954e230114a0..9432fa656ccb117cc29bf1dd6c58e01a308da587 100644 (file)
@@ -32,6 +32,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         * The language instance for the template loader
         */
        private static $langInstance = null;
+
        /**
         * Instance of a request class
         */
@@ -42,6 +43,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $responseInstance = null;
 
+       /**
+        * Search criteria instance
+        */
+       private $searchInstance = null;
+
        /**
         * The real class name
         */
@@ -130,6 +136,8 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        const EXCEPTION_DEFAUL_CONTROLLER_GONE       = 0x034;
        const EXCEPTION_CLASS_NOT_FOUND              = 0x035;
        const EXCEPTION_REQUIRED_INTERFACE_MISSING   = 0x036;
+       const EXCEPTION_FATAL_ERROR                  = 0x037;
+       const EXCEPTION_FILE_NOT_FOUND               = 0x038;
 
        /**
         * In the super constructor these system classes shall be ignored or else
@@ -913,7 +921,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                // Is the extra message given?
                if (!empty($message)) {
                        // Then add it as well
-                       $stubMessage .= sprintf(" Message: <u>%s</u>", $message);
+                       $stubMessage .= sprintf(" Message: <span id=\"stub_message\">%s</span>", $message);
                }
 
                // Debug instance is there?
@@ -961,6 +969,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                print "</pre>";
                exit;
        }
+
+       /**
+        * Setter for search instance
+        *
+        * @param       $searchInstance         Searchable criteria instance
+        * @return      void
+        */
+       public final function setSearchInstance (LocalSearchCriteria $searchInstance) {
+               $this->searchInstance = $searchInstance;
+       }
+
+       /**
+        * Getter for search instance
+        *
+        * @return      $searchInstance         Searchable criteria instance
+        */
+       public final function getSearchInstance () {
+               return $this->searchInstance;
+       }
 }
 
 // [EOF]