RefillRequestValidatorFilter.execute ( Requestable requestInstance,
Responseable responseInstance 
)

Executes the filter with given request and response objects.

Parameters:
$requestInstance An instance of a class with an Requestable interface
$responseInstance An instance of a class with an Responseable interface
Returns:
void
Todo:
0% done

Reimplemented from BaseShipSimuFilter.

Definition at line 56 of file class_RefillRequestValidatorFilter.php.

References Responseable.addFatalMessage(), BaseFrameworkSystem.partialStub(), and Requestable.requestIsValid().

00056                                                                                                {
00057                 // Execute the parent execute method
00058                 parent::execute($requestInstance, $responseInstance);
00059 
00060                 // Are all required request fields set?
00061                 if (($requestInstance->isRequestElementSet('type') === false) || ($requestInstance->isRequestElementSet('amount') === false)) {
00062                         // Something important is missing
00063                         $requestInstance->requestIsValid(false);
00064 
00065                         // Add a message to the response
00066                         $responseInstance->addFatalMessage('refill_page_required_fields_missing');
00067 
00068                         // Abort here
00069                         return false;
00070                 } // END - if
00071 
00072                 // Unfinised part
00073                 $this->partialStub("Unfinished method.");
00074         }

Here is the call graph for this function:


Generated on Mon Dec 8 01:17:07 2008 for Ship-Simulator by  doxygen 1.5.6