]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/filter/page/class_RefillPageFilter.php
A lot rewrites and fixes for weak redirect methods
[shipsimu.git] / application / ship-simu / main / filter / page / class_RefillPageFilter.php
index c87f21eecd8aefb872e5128d052dd52ec20224f1..d33661e26ae551aa37e1caf6dc7c71223848eb38 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 RefillPageFilter extends BaseFilter implements Filterable {
+class RefillPageFilter extends BaseShipSimuFilter implements Filterable {
        /**
         * Protected constructor
         *
@@ -35,12 +35,16 @@ class RefillPageFilter extends BaseFilter implements Filterable {
        /**
         * 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 createRefillPageFilter () {
+       public final static function createRefillPageFilter (Controller $controllerInstance) {
                // Get a new instance
                $filterInstance = new RefillPageFilter();
 
+               // Set the controller
+               $filterInstance->setControllerInstance($controllerInstance);
+
                // Return the instance
                return $filterInstance;
        }
@@ -53,6 +57,9 @@ class RefillPageFilter extends BaseFilter implements Filterable {
         * @return      void
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               // Execute the parent execute method
+               parent::execute($requestInstance, $responseInstance);
+
                // Is the configuration variable set?
                if ($this->getConfigInstance()->readConfig('refill_page_active') === "N") {
                        // Password is empty