A PHRUTS_Action is an adapter between the contents of an incoming HTTP request and the corresponding business logic that should be executed to process this request.
The controller (PHRUTS_ActionService) will select an appropriate PHRUTS_Action for each request, create an instance (if necessary), and call the execute method.
When a PHRUTS_Action instance is first created, the controller service will call setService with a non-null argument to identify the controller service instance to which this PHRUTS_Action is attached. When the controller service is to be shut down (or restarted), the setService method will be called with a null argument, which can be used to clean up any allocated resources in use by this PHRUTS_Action.
Located in /action/PHRUTS_Action.php (line 44)
The system default PHRUTS_Locale.
The controller service to which we are attached.
Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it), with provision for handling exceptions thrown by the business logic.
Return an PHRUTS_ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.
Return the specified data source for the current module.
Return the user's currently selected Locale.
Return the specified or default (key = "") message resources for the current module.
Return the controller service instance to which we are attached.
Returns true if the current form's cancel button was pressed.
This method will check if the PHRUTS_Globals::CANCEL_KEY request attribute has been set, which normally occurs if the cancel button was pressed by the user in the current request. If true, validation performed by a PHRUTS_ActionForm validate method will have been skipped by the controller service.
Save the specified error messages keys into the appropriate request attribute, if any messages are required.
Otherwise, ensure that the request attribute is not created.
Set the user's currently selected PHRUTS_Locale.
Set the controller service instance to which we are attached (if service is non-null), or release any allocated resources (if service is null).
Documentation generated on Sat, 31 May 2008 15:45:46 +0200 by phpDocumentor 1.4.1