Controller instance shall now be fetched from registry
authorRoland Häder <roland@mxchange.org>
Thu, 20 Nov 2008 19:55:34 +0000 (19:55 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Nov 2008 19:55:34 +0000 (19:55 +0000)
application/ship-simu/main/filter/class_
application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysStartupHelpFilter.php
application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysTrainingFilter.php
application/ship-simu/main/filter/page/class_RefillPageFilter.php
application/ship-simu/main/filter/validator/class_RefillRequestValidatorFilter.php
application/ship-simu/main/filter/verifier/class_BirthdayVerifierFilter.php

index bb35473..6a0bb77 100644 (file)
@@ -35,16 +35,12 @@ class ???Filter extends BaseShipSimuFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a Controller class
         * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function create???Filter (Controller $controllerInstance) {
+       public final static function create???Filter () {
                // Get a new instance
                $filterInstance = new ???Filter();
 
-               // Set the controller
-               $filterInstance->setControllerInstance($controllerInstance);
-
                // Return the instance
                return $filterInstance;
        }
index 74ef33d..ed1cdea 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-3class ShipSimuGovermentPaysStartupHelpFilter extends BaseShipSimuFilter implements Filterable {
+class ShipSimuGovermentPaysStartupHelpFilter extends BaseShipSimuFilter implements Filterable {
        /**
         * Protected constructor
         *
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a Controller class
         * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function createShipSimuGovermentPaysStartupHelpFilter (Controller $controllerInstance) {
+       public final static function createShipSimuGovermentPaysStartupHelpFilter () {
                // Get a new instance
                $filterInstance = new ShipSimuGovermentPaysStartupHelpFilter();
 
-               // Set the controller
-               $filterInstance->setControllerInstance($controllerInstance);
-
                // Return the instance
                return $filterInstance;
        }
index 5b51ae3..8146499 100644 (file)
@@ -35,16 +35,12 @@ class ShipSimuGovermentPaysTrainingFilter extends BaseShipSimuFilter implements
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a Controller class
         * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function createShipSimuGovermentPaysTrainingFilter (Controller $controllerInstance) {
+       public final static function createShipSimuGovermentPaysTrainingFilter () {
                // Get a new instance
                $filterInstance = new ShipSimuGovermentPaysTrainingFilter();
 
-               // Set the controller
-               $filterInstance->setControllerInstance($controllerInstance);
-
                // Return the instance
                return $filterInstance;
        }
index d33661e..1f3d3e8 100644 (file)
@@ -35,16 +35,12 @@ class RefillPageFilter extends BaseShipSimuFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a Controller class
         * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function createRefillPageFilter (Controller $controllerInstance) {
+       public final static function createRefillPageFilter () {
                // Get a new instance
                $filterInstance = new RefillPageFilter();
 
-               // Set the controller
-               $filterInstance->setControllerInstance($controllerInstance);
-
                // Return the instance
                return $filterInstance;
        }
index 71e9b2d..43dc7c6 100644 (file)
@@ -35,16 +35,12 @@ class RefillRequestValidatorFilter extends BaseShipSimuFilter implements Filtera
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a Controller class
         * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function createRefillRequestValidatorFilter (Controller $controllerInstance) {
+       public final static function createRefillRequestValidatorFilter () {
                // Get a new instance
                $filterInstance = new RefillRequestValidatorFilter();
 
-               // Set the controller
-               $filterInstance->setControllerInstance($controllerInstance);
-
                // Return the instance
                return $filterInstance;
        }
index 240b9a6..db5a026 100644 (file)
@@ -35,16 +35,12 @@ class BirthdayVerifierFilter extends BaseShipSimuFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a Controller class
         * @return      $filterInstance                 An instance of this filter class
         */
-       public final static function createBirthdayVerifierFilter (Controller $controllerInstance) {
+       public final static function createBirthdayVerifierFilter () {
                // Get a new instance
                $filterInstance = new BirthdayVerifierFilter();
 
-               // Set the controller
-               $filterInstance->setControllerInstance($controllerInstance);
-
                // Return the instance
                return $filterInstance;
        }