X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Ffilter%2Fgoverment%2Fclass_ShipSimuGovermentPaysStartupHelpFilter.php;h=74ef33d0b4d502c764c9535ec708c9893478c1c2;hp=6917edcc2b5c2568ab393a6b7e8301645681d578;hb=df33e264f3246f80756d7e2da55d7f7c40f9088c;hpb=580921326fc93fe28639c79357ebc7e72cb1836d diff --git a/application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysStartupHelpFilter.php b/application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysStartupHelpFilter.php index 6917edc..74ef33d 100644 --- a/application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysStartupHelpFilter.php +++ b/application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysStartupHelpFilter.php @@ -21,7 +21,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -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');