Executes the filter with given request and response objects.
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:
![]()
|
1.5.6