A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / filter / goverment / class_ShipSimuGovermentPaysStartupHelpFilter.php
index 6917edcc2b5c2568ab393a6b7e8301645681d578..74ef33d0b4d502c764c9535ec708c9893478c1c2 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/>.
  */
-class ShipSimuGovermentPaysStartupHelpFilter extends BaseFilter implements Filterable {
+3class ShipSimuGovermentPaysStartupHelpFilter extends BaseShipSimuFilter implements Filterable {
        /**
         * Protected constructor
         *
@@ -35,12 +35,16 @@ class ShipSimuGovermentPaysStartupHelpFilter extends BaseFilter implements Filte
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance         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 () {
+       public final static function createShipSimuGovermentPaysStartupHelpFilter (Controller $controllerInstance) {
                // Get a new instance
                $filterInstance = new ShipSimuGovermentPaysStartupHelpFilter();
 
+               // Set the controller
+               $filterInstance->setControllerInstance($controllerInstance);
+
                // Return the instance
                return $filterInstance;
        }
@@ -54,6 +58,9 @@ class ShipSimuGovermentPaysStartupHelpFilter extends BaseFilter implements Filte
         * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               // Execute the parent execute method
+               parent::execute($requestInstance, $responseInstance);
+
                // Get the user instance from registry
                $userInstance = Registry::getRegistry()->getInstance('user');