dmBridge PHP API
DMCPAdminController Class Reference
Inheritance diagram for DMCPAdminController:

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description


Member Function Documentation

DMCPAdminController::login ( )

By default, redirects to the "admin" params.

Override this by sending a "dest_params" key in POST data.

Since:
0.1

Definition at line 55 of file DMCPAdminController.php.

DMCPAdminController::logout ( )

If the user is logged in, logs out the user by erasing his/her serialized DMUser object from the session.

If the user is not logged in, redirects to the login page.

Since:
0.1

Definition at line 100 of file DMCPAdminController.php.

DMCPAdminController::preFlightCheck ( )
Exceptions:
DMFileAccessException

Definition at line 33 of file DMCPAdminController.php.

DMCPAdminController::renderModuleTemplate ( abs_pathname) [protected]

Renders the module template at the given pathname.

To pass variables into the template, add them to the $tpl_vars instance variable, which will be made available in the template as $view.

Parameters:
stringabs_pathname The absolute pathname of the template

Definition at line 148 of file DMCPAdminController.php.

DMCPAdminController::renderTemplate ( pathname) [protected]

Renders the template at the given pathname.

To pass variables into the template, add them to the $tpl_vars instance variable, which will be made available in the template as $view.

This method is not for use by modules. Modules should use renderModuleTemplate() instead.

Parameters:
stringpathname

Definition at line 167 of file DMCPAdminController.php.

Referenced by login().


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables