* 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 BaseFrameworkSystem implements Filterable {
+class ShipSimuGovermentPaysTrainingFilter extends BaseShipSimuFilter implements Filterable {
/**
* Protected constructor
*
protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
-
- // Clean up a little
- $this->removeNumberFormaters();
- $this->removeSystemArray();
}
/**
* Creates an instance of this filter class
*
- * @return $filterInstance An instance of this filter class
+ * @return $filterInstance An instance of this filter class
*/
public final static function createShipSimuGovermentPaysTrainingFilter () {
// Get a new instance
* @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');
// Request is invalid
$requestInstance->requestIsValid(false);
- // Add a message to the response
- $responseInstance->addFatalMessage('goverment_pays_no_training');
+ // Redirect to configured URL
+ $responseInstance->redirectToConfiguredUrl('login_goverment_training_failed_url');
- // Abort here
- return false;
+ // Stop processing here
+ exit();
} // END - if
}
}