RulesAcceptedFilter.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

Implements Filterable.

Definition at line 57 of file class_RulesAcceptedFilter.php.

References Responseable.addFatalMessage(), Requestable.getRequestElement(), and Requestable.requestIsValid().

00057                                                                                                {
00058                 // Get the "rules" value from request
00059                 $rules = $requestInstance->getRequestElement('rules');
00060 
00061                 // Was the "rules" value found in form? And is it set?
00062                 if (is_null($rules)) {
00063                         // Not found in form so stop processing here
00064                         $requestInstance->requestIsValid(false);
00065 
00066                         // Add a message to the response
00067                         $responseInstance->addFatalMessage('rules_unchecked');
00068 
00069                         // Skip further processing
00070                         return false;
00071                 }
00072         }

Here is the call graph for this function:


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