Inheritance diagram for GenieGate_Controller_User:


Public Member Functions | |
| GenieGate_Controller_User (&$conf) | |
| Constructor. | |
| addListener (&$listener) | |
| addListener is needed to add the listeners to the other modules. | |
| getUrl ($id) | |
| Looks in the conf (in [Url] section) for a specific URL, if found returns it. | |
| getMailView ($to, $id) | |
| Creates an unstance of View_Mail using the configured view directory. | |
| getRedirectView ($location) | |
| Get a redirected view. | |
| do_show_signup_form () | |
| Show the default signup form. | |
| do_show_password_change () | |
| Show the screen for changing user password. | |
| do_change_password () | |
| Change the users password. | |
| do_show_remind_form () | |
| Shows the form for confirmation code reminder. | |
| do_resend_confirm () | |
| Resends their confirmation code and password information. | |
| do_process_signup () | |
| Process the signup form. | |
| do_confirm_account () | |
| Confirms the user account. | |
| do_show_forgot_password () | |
| Show form that asks for user UID,EMAIL and sends password. | |
| do_send_password () | |
| Sends the user their password after they've typed in their email address or user ID. | |
| do_show_properties () | |
| Generic, show all the users properties. | |
| do_main_page () | |
| Show the main page for the user. | |
| do_logout () | |
| Log out. | |
| do_login () | |
| Login, specify LOCATION to determine where to go after a login. | |
| do_update_settings () | |
| Update the user settings, groups and public properties. | |
| addPlugins () | |
| Add all the plugins. | |
| 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 | |
| $APP_NAME = "User" | |
| Application name. | |
| $DISPATCH | |
| Dispatch table, you need to assign the KEY => method_calls to this so it knows what to run. | |
| $CFG | |
| Configuration associative array. | |
| $DBH | |
| MySQL resource link. | |
| $API_VERSION = "1.0" | |
| API_VERSION - The Version number for Plugins to use. | |
There are 2 ways of running the controller, they are
1.) Provide the form variables that trigger the methods. (Default) 2.) use the $method parameter with the run method. Example: $uc->run("do_show_signup_form");
Definition at line 24 of file User.php.
|
|
Constructor. Takes configuration as pr. the ini file.
Definition at line 53 of file User.php. References GenieGate_Controller::addPlugins(). |
|
|
addListener is needed to add the listeners to the other modules.
Reimplemented from GenieGate_Controller. |
|
|
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(). |
|
|
Confirms the user account. Uses form parameter C - Confirmation code, U - User ID. (parameter names abbreviated to make URL's more sane) Definition at line 272 of file User.php. References GenieGate_Controller::getView(). |
|
|
Login, specify LOCATION to determine where to go after a login.
Definition at line 375 of file User.php. References do_main_page(), and getRedirectView(). |
|
|
Log out. Specify LOCATION to determine where to go after the logout screen. Definition at line 365 of file User.php. References getRedirectView(), and GenieGate_Controller::getView(). |
|
|
Show the main page for the user. This should be a menu for changing their settings, and logout. (Most people will probably want to provide their own page) Definition at line 349 of file User.php. References GenieGate_Controller::getView(). Referenced by do_login(). |
|
|
Process the signup form. Takes the form variables USERID, NAME, EMAIL, PASSWORD, PASSWORDC, LOCATION and sets up a preliminary account, emails the user with a message showing them how to enable their account. Definition at line 218 of file User.php. References getMailView(), getRedirectView(), getUrl(), and GenieGate_Controller::getView(). |
|
|
Resends their confirmation code and password information.
Definition at line 174 of file User.php. References getMailView(), getRedirectView(), getUrl(), and GenieGate_Controller::getView(). |
|
|
Sends the user their password after they've typed in their email address or user ID. (or both) Definition at line 301 of file User.php. References getMailView(), and GenieGate_Controller::getView(). |
|
|
Shows the form for confirmation code reminder.
Definition at line 167 of file User.php. References GenieGate_Controller::getView(). |
|
|
Show the default signup form. The retured view is "user-signup". Definition at line 114 of file User.php. References GenieGate_Controller::getView(). |
|
|
Update the user settings, groups and public properties. This updates the users settings, properties or groups. The form variables:
The variable HAVE_GROUPS must be set to allow the saving of group ID's, (otherwise it would remove all the groups when no groups were selected) The LOCATION parameter can be used to redirect the user to a given page after their settings are modified. The PROP:propertyID variables are used to set various properties. This allows setting user preferences and the like. Definition at line 406 of file User.php. References getRedirectView(), and GenieGate_Controller::getView(). |
|
|
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 GenieGate_Controller::run(). |
|
||||||||||||
|
Fire off the dispatchStart() trigger.
Definition at line 164 of file Controller.php. Referenced by GenieGate_Controller::run(). |
|
||||||||||||
|
Creates an unstance of View_Mail using the configured view directory.
Definition at line 97 of file User.php. Referenced by do_process_signup(), do_resend_confirm(), and do_send_password(). |
|
|
Looks in the conf (in [Url] section) for a specific URL, if found returns it. Otherwise returns a url formed from the ID and the directory of this file. (We need this for confirmation Url's) Definition at line 82 of file User.php. Referenced by do_process_signup(), and do_resend_confirm(). |
|
||||||||||||
|
|
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 GenieGate_Controller::fireDispatchEnd(), and GenieGate_Controller::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