controller class
The controller class controls the execution of the actions.
Located in /controller.class.php (line 37)
Constructs the controller
The constructor starts the session and sets up the protected varibles.
connects datamodel to database
connect_datamodel_to_database connects a registered datamodel to a registered database
disconnects datamodel from database
disconnect_datamodel_from_database disconnects a registered datamodel from a registered database. Must be used if one does not want the datamodel to reconnect to a particular database in subsequent controllers.
Processes the current data and displays/returns the results.
Execute controls the order of execution with in the controller. It is the only function that needs to be called from an instantiated controller object. It retrieves the registered databases and datamodels from the session then executes the action function from the post. It then sets the subviews, saves the registered databases and datamodels to the session and then displays the view.
execute the current action
Executeactions calls the function that is passed in the post array or if the action is not present it executes the init function
inserts databases into session
insert_databases_into_session will insert the registered databases into the session.
inserts datamodels into session
insert_datamodels_into_session will insert the registered datamodel into the session.
checks to see if a database is registered
is_database_registered is used to check to see whether a particular database is registered.
checks to see if a datamodel is registered
is_datamodel_registered is used to check to see whether a particular datamodel is registered.
registers a database
register_database registers a database with the controller so it can be used by the controller.
registers a datamodel
register_datamodel registers a datamodel with the controller so it can be used by the controller.
retrieves databases from session
retrieve_databases_from_session will fetch the registered databases from the session.
retrieves datamodels from session
retrieve_datamodels_from_session will fetch the registered datamodels from the session.
saves data to session
save_data_to_session calls insert_datamodels_into_session and insert_databases_into_session to save the current controller data to the session.
sets sub views
set_sub_views assigns the sub_views array to the template so the view knows which sub views to show.
unregisters a database
unregister_database unregisters a database. Must be used if one does not want reconnect to a particular database in subsequent controllers.
unregisters a datamodel
unregister_datamodel unregisters a datamodel when is is no longer needed.
updates datamodels from post
update_datamodels_from_post updates all datamodels from post
updates datamodel from post
update_datamodel_from_post updates a particular datamodel from post
Documentation generated on Wed, 07 Sep 2005 22:55:18 -0400 by phpDocumentor 1.3.0RC3