Inheritance diagram for GenieGate_Controller:

Public Member Functions | |
| GenieGate_Controller (&$conf) | |
Constructor, classes extending this class must call parent::GenieGate_Controller($conf) if they implement their own constructors. | |
| addPlugins () | |
| Add all the plugins. | |
| addListener (&$listener) | |
| Adds a listener object. | |
| getView ($view_id, $params=FALSE) | |
| Get a view object. | |
| run ($method=FALSE) | |
| Run the controller. | |
| finish () | |
| Finish the application, call this after the display() routine. | |
| fireDispatchStart ($trigger, $method) | |
| Fire off the dispatchStart() trigger. | |
| fireDispatchEnd ($method, &$view) | |
| Fire off the dispatchEnd() method. | |
Public Attributes | |
| $CFG | |
| Configuration associative array. | |
| $DBH | |
| MySQL resource link. | |
| $DISPATCH = array() | |
| Dispatch table, you need to assign the KEY => method_calls to this so it knows what to run. | |
| $APP_NAME = "Controller" | |
| Application name. | |
| $API_VERSION = "1.0" | |
| API_VERSION - The Version number for Plugins to use. | |
The "heart" of the application is a Model-View-Controller design pattern, the Controller looks at the request and figures out what "Model" to run. The Model returns a view. (in our case the model is a method in the dispatch table, rather than a whole class.)
It is up to the caller to execute the display() method of the returned object.
Definition at line 15 of file Controller.php.
|
|
Constructor, classes extending this class must call
Definition at line 51 of file Controller.php. |
|
|
Adds a listener object. This should be extended so that objects (such as UserAccount and Properties are also populated)
Reimplemented in GenieGate_Controller_Admin, and GenieGate_Controller_User. Definition at line 99 of file Controller.php. |
|
|
Add all the plugins. (provided here for subclasses to use) Subclasses should call this after they've initialized themselves for any plugins to use. Definition at line 81 of file Controller.php. Referenced by GenieGate_Controller_Admin::GenieGate_Controller_Admin(), and GenieGate_Controller_User::GenieGate_Controller_User(). |
|
|
Finish the application, call this after the display() routine.
Definition at line 154 of file Controller.php. |
|
||||||||||||
|
Fire off the dispatchEnd() method.
Definition at line 175 of file Controller.php. Referenced by run(). |
|
||||||||||||
|
Fire off the dispatchStart() trigger.
Definition at line 164 of file Controller.php. Referenced by run(). |
|
||||||||||||
|
|
Run the controller. It does this by looping through the keys in the request looking for DISPATCH keys.
Reimplemented in GenieGate_Controller_Admin. Definition at line 131 of file Controller.php. References fireDispatchEnd(), and fireDispatchStart(). |
|
|
API_VERSION - The Version number for Plugins to use. (optional, recommend inheriting from GenieGate_Api_Plugin) Definition at line 41 of file Controller.php. |
Documentation generated by DoxyGen