]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/filter/goverment/class_ShipSimuGovermentPaysTrainingFilter.php
A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / filter / goverment / class_ShipSimuGovermentPaysTrainingFilter.php
index b8b8dd82a7af39510606758f87eebd18d7db1ae2..5b51ae387452596849fe1221f8a077873735d162 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 ShipSimuGovermentPaysTrainingFilter extends BaseFilter implements Filterable {
+class ShipSimuGovermentPaysTrainingFilter extends BaseShipSimuFilter implements Filterable {
        /**
         * Protected constructor
         *
@@ -35,12 +35,16 @@ class ShipSimuGovermentPaysTrainingFilter extends BaseFilter implements Filterab
        /**
         * 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 createShipSimuGovermentPaysTrainingFilter () {
+       public final static function createShipSimuGovermentPaysTrainingFilter (Controller $controllerInstance) {
                // Get a new instance
                $filterInstance = new ShipSimuGovermentPaysTrainingFilter();
 
+               // Set the controller
+               $filterInstance->setControllerInstance($controllerInstance);
+
                // Return the instance
                return $filterInstance;
        }
@@ -54,6 +58,9 @@ class ShipSimuGovermentPaysTrainingFilter extends BaseFilter implements Filterab
         * @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');