Class ActionController

Object
   |
   --ActionController

Classes extended from ActionController:

Located in File: Program_Root/ActionController.php


The ActionController class represents the controller in the
 Model-View-Controller (MVC) design pattern. The ActionController receives
 and processes all requests that change the state of the application.

 Generally, a "Model2" application is architected as follows:
 
 The standard version of ActionController implements the following logic for
 each incoming HTTP request. You can override some or all of this
 functionality by subclassing this class and implementing your own version of
 the processing.
 

 The standard version of ActionController is configured based on the
 following initialization parameters, which you will specify in the options
 for your application. Subclasses that specialize this ActionController are
 free to define additional initialization parameters.
 

Class Variable Summary
$_actionForms
Default Value: -><-
$_actionMappings
Default Value: -><-
$_actions
Default Value: -><-
$_options
Default Value: -><-

Inherited Class Variable Summary

Inherited Method Summary
Inherited From Class Object
Function Description
clone ( )
equals ( [$object = ] )
toString ( )

Method Summary
void constructor ActionController ( $options )
void process ( $mappings, $request )
ActionForward _processAction ( $actionMapping, $actionForm )
ActionForm _processForm ( $mappings, $request )
void _processForward ( $actionForward )
ActionMapping _processMapping ( $mappings, $request )
boolean _processValidate ( $actionMapping, $actionForm )
Variable Detail

$_actionForms

Data type: HashMap


$_actionMappings

Data type: HashMap


$_actions

Data type: HashMap


$_options

Data type: array



Method Detail

constructor ActionController

void constructor ActionController ( $options )

Create a ActionController specifying the options.
Function Parameters:
- array $options:
Function Info:
Access - public

process

void process ( $mappings, $request )

Process the request.
Function Parameters:
- array $mappings:
- array $request:
Function Info:
Access - public

_processAction

ActionForward _processAction ( $actionMapping, $actionForm )

Ask the specified Action instance to handle this request.
Function Parameters:
- ActionMapping $actionMapping:
- ActionForm $actionForm:
Function Info:
Access - private

_processForm

ActionForm _processForm ( $mappings, $request )

Identify and optionally return an appropriate populated ActionForm.
Function Parameters:
- array $mappings:
- array $request:
Function Info:
Access - private

_processForward

void _processForward ( $actionForward )

Forward to the specified destination.
Function Parameters:
- ActionForward $actionForward:
Function Info:
Access - private

_processMapping

ActionMapping _processMapping ( $mappings, $request )

Identify and return an appropriate ActionMapping.
Function Parameters:
- array $mappings:
- array $request:
Function Info:
Access - private

_processValidate

boolean _processValidate ( $actionMapping, $actionForm )

Call the validate() method of the specified ActionForm.
Function Parameters:
- ActionMapping $actionMapping:
- ActionForm $actionForm:
Function Info:
Access - private