class_RefillPageFilter.php

Go to the documentation of this file.
00001 <?php
00024 class RefillPageFilter extends BaseShipSimuFilter implements Filterable {
00030         protected function __construct () {
00031                 // Call parent constructor
00032                 parent::__construct(__CLASS__);
00033         }
00034 
00040         public final static function createRefillPageFilter () {
00041                 // Get a new instance
00042                 $filterInstance = new RefillPageFilter();
00043 
00044                 // Return the instance
00045                 return $filterInstance;
00046         }
00047 
00055         public function execute (Requestable $requestInstance, Responseable $responseInstance) {
00056                 // Execute the parent execute method
00057                 parent::execute($requestInstance, $responseInstance);
00058 
00059                 // Is the configuration variable set?
00060                 if ($this->getConfigInstance()->readConfig('refill_page_active') === "N") {
00061                         // Password is empty
00062                         $requestInstance->requestIsValid(false);
00063 
00064                         // Add a message to the response
00065                         $responseInstance->addFatalMessage('refill_page_not_active');
00066 
00067                         // Abort here
00068                         return false;
00069                 } // END - if
00070         }
00071 }
00072 
00073 // [EOF]
00074 ?>

Generated on Mon Dec 8 01:06:44 2008 for Ship-Simulator by  doxygen 1.5.6