Style convention applied (incomplete), pre/post filters added for form handler
[shipsimu.git] / inc / classes / main / resolver / class_BaseResolver.php
index 91f5c3d522b625a1fbdaf6a10316fc2a4c9b7ec7..9345109a8ac24b99b46e841dc6daf41cd6cd7f60 100644 (file)
@@ -32,6 +32,11 @@ class BaseResolver extends BaseFrameworkSystem {
         */
        private $commandPrefix = "";
 
+       /**
+        * A controller instance
+        */
+       private $controllerInstance = null;
+
        /**
         * Protected constructor
         *
@@ -42,9 +47,29 @@ class BaseResolver extends BaseFrameworkSystem {
                parent::__construct($class);
 
                // Clean up a little
+               $this->removeNumberFormaters();
                $this->removeSystemArray();
        }
 
+       /**
+        * Setter for controller instance (this surely breaks a bit the MVC patterm)
+        *
+        * @param       $controllerInstance             An instance of the controller
+        * @return      void
+        */
+       public final function setControllerInstance (Controller $controllerInstance) {
+               $this->controllerInstance = $controllerInstance;
+       }
+
+       /**
+        * Getter for controller instance (this surely breaks a bit the MVC patterm)
+        *
+        * @return      $controllerInstance             An instance of the controller
+        */
+       public final function getControllerInstance () {
+               return $this->controllerInstance;
+       }
+
        /**
         * Setter for command name
         *