The controller part of the MVC
This class controls processing for the program indiscriminately. The focus is always on the underlying views or commands. This class allows you to store application messages such as status messages (e.g. something was saved successfully) or error messages from failed validation or security reasons. By default these are stored in the $_SESSION superglobal in $_SESSION['MVC_MESSAGE'] and $_SESSION['MVC_ERRORS'] respectively (note: the later is an array). If your application is not using PHP4 sessions you will want to follow the directions given in the documentation for Controller::_clearMessages
Located in /Controller.php (line 50)
Constructor
Loads MVC configuration data and sets up data needed for further processing
Clears any existing errors or messages
This method assumes the application is using PHP4 sessions to store MVC errors and messages. If that is not the case, the application should create a new class that extends this controller and override this function to clear the messages in the way desired.
Forwards control onto another command or view
A model will typically try to forward control to a view (less likely, but possible, another command) after processing. This object handles that forwarding and can even handle forwarding to a different URL if configured to do so.
Determines if string is a name of an existing forward.
Because views can return the HTML string it won't be obvious if the call to the view's getView() is a forward or actually HTML. This function makes that determintation.
Loads the mapping data for a model or view
This will load only the mapping data needed by the current object.
Process a request (or forward)
NOTE this now supports the concept of a global forward for descendants of the validator class. A global forward is a slick way for validators to return control to the calling command or view without having define a bunch of them in the configuration file.
Sets base URL for this controller
The base url allows all subsequent references to URL's to be relative to the URL specified here
Sets location of commands for this controller
Sets location of the base MVC package so other MVC classes can be loaded at a later time.
Sets location of views for this controller
Documentation generated on Mon, 7 Mar 2005 22:36:21 -0600 by phpDocumentor 1.3.0RC3