More stubs added, code "made" generic:
[shipsimu.git] / inc / classes / main / class_BaseFrameworkSystem.php
index de854be0232e2d440c09d9784daf581896c765ec..08abd1f8001ec6046bd603f487a638f08ea8fd75 100644 (file)
@@ -68,6 +68,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $templateInstance = null;
 
+       /**
+        * Database result instance
+        */
+       private $resultInstance = null;
+
        /**
         * The real class name
         */
@@ -201,6 +206,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         * Destructor reached...
         *
         * @return      void
+        * @todo        This is old code. Do we still need this old lost code?
         */
        public function __destruct() {
                // Is this object already destroyed?
@@ -211,7 +217,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                        $this->resetUniqueID();
                } elseif ((defined('DEBUG_DESTRUCTOR')) && (is_object($this->getDebugInstance()))) {
                        // Already destructed object
-                       $this->getDebugInstance()->output(sprintf("[%s:] Das Objekt <strong>%s</strong> wurde bereits zerst&ouml;rt.",
+                       $this->getDebugInstance()->output(sprintf("[%s:] The object <strong>%s</strong> is already destroyed.",
                                __CLASS__, $this->__toString()
                        ));
                }
@@ -320,6 +326,26 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                }
        }
 
+       /**
+        * Setter for database result instance
+        *
+        * @param       $resultInstance         An instance of a database result class
+        * @return      void
+        * @todo        SearchableResult and UpdateableResult shall have a super interface to use here
+        */
+       protected final function setResultInstance (SearchableResult $resultInstance) {
+               $this->resultInstance =  $resultInstance;
+       }
+
+       /**
+        * Getter for database result instance
+        *
+        * @return      $resultInstance         An instance of a database result class
+        */
+       public final function getResultInstance () {
+               return $this->resultInstance;
+       }
+
        /**
         * Setter for template engine instances
         *