Public Member Functions

AdminDashboardHandler Class Reference

Inheritance diagram for AdminDashboardHandler:
Collaboration diagram for AdminDashboardHandler:

List of all members.

Public Member Functions

 get_dashboard ()
 post_dashboard ()
 fetch_dashboard_modules ()
 ajax_dashboard ($handler_vars)
 filter_dash_module_add_item ($module, $id, $theme)
 dash_additem ($form)

Detailed Description

Habari AdminDashboardHandler Class Handles dashboard-related actions in the admin

Definition at line 12 of file admindashboardhandler.php.


Member Function Documentation

AdminDashboardHandler::ajax_dashboard ( handler_vars  ) 

Handles AJAX requests from the dashboard

Definition at line 112 of file admindashboardhandler.php.

AdminDashboardHandler::dash_additem ( form  ) 

Adds a module to the user's dashboard

Parameters:
object form FormUI object

Definition at line 181 of file admindashboardhandler.php.

AdminDashboardHandler::fetch_dashboard_modules (  ) 

Fetches active modules for display on the dashboard

Definition at line 74 of file admindashboardhandler.php.

Referenced by ajax_dashboard(), and get_dashboard().

AdminDashboardHandler::filter_dash_module_add_item ( module,
id,
theme 
)

Function used to set theme variables to the add module dashboard widget. TODO make this form use an AJAX call instead of reloading the page

Definition at line 157 of file admindashboardhandler.php.

AdminDashboardHandler::get_dashboard (  ) 

Handles get requests for the dashboard

Todo:
update check should probably be cron'd and cached, not re-checked every load

Definition at line 18 of file admindashboardhandler.php.

Referenced by post_dashboard().

AdminDashboardHandler::post_dashboard (  ) 

Handles POST requests from the dashboard.

Definition at line 66 of file admindashboardhandler.php.


The documentation for this class was generated from the following file: