Public Member Functions | Protected Member Functions | Protected Attributes

AdminHandler Class Reference

Inheritance diagram for AdminHandler:
Collaboration diagram for AdminHandler:

List of all members.

Public Member Functions

 __construct ()
 setup_admin_theme ($page, $type= '')
 act ($action)
 act_admin_ajax ()
 get_sysinfo ()
 get_blank ($content= '')
 create_theme ()

Protected Member Functions

 get_main_menu ($theme)
 filter_menus_by_permission ($menuarray)
 set_admin_template_vars ($theme)
 display ($template_name)

Protected Attributes

 $active_theme = null

Detailed Description

Habari AdminHandler Class Backbone of the admin area, handles requests and functionality.

Definition at line 13 of file adminhandler.php.


Constructor & Destructor Documentation

AdminHandler::__construct (  ) 

Verifies user credentials before creating the theme and displaying the request.

Reimplemented in AdminGroupsHandler, and AdminUsersHandler.

Definition at line 21 of file adminhandler.php.


Member Function Documentation

AdminHandler::act ( action  ) 

Dispatches the request to the defined method. (ie: post_{page})

Plugin action to allow plugins to execute before a certain action is triggered

See also:
ActionHandler::$action before_act_{$action}

Plugin action to allow plugins to execute after a certain action is triggered

See also:
ActionHandler::$action before_act_{$action}

Reimplemented from ActionHandler.

Definition at line 96 of file adminhandler.php.

Referenced by AdminCommentsHandler::form_comment(), AdminCommentsHandler::get_comment(), AdminPluginsHandler::get_plugin_toggle(), and AdminPostsHandler::get_publish().

AdminHandler::act_admin_ajax (  ) 

Handle incoming requests to /admin_ajax for admin ajax requests

Definition at line 206 of file adminhandler.php.

AdminHandler::display ( template_name  )  [protected]
AdminHandler::filter_menus_by_permission ( menuarray  )  [protected]

Remove menus for which the user does not have qualifying permissions.

Parameters:
array $menuarray The master array of admin menu items
Returns:
array The modified array of admin menu items

Definition at line 416 of file adminhandler.php.

Referenced by get_main_menu().

AdminHandler::get_blank ( content = ''  ) 

Display a blank admin page with appropriate navigation. This function terminates execution before returning. Useful for displaying errors when permission is denied for viewing.

Parameters:
string $content Optional default content to display

Definition at line 295 of file adminhandler.php.

Referenced by act(), AdminPostsHandler::get_publish(), and AdminUsersHandler::get_user().

AdminHandler::get_main_menu ( theme  )  [protected]

Assembles the main menu for the admin area.

Parameters:
Theme $theme The theme to add the menu to

Definition at line 307 of file adminhandler.php.

Referenced by set_admin_template_vars().

AdminHandler::get_sysinfo (  ) 

Handles get requests for the system information page.

Definition at line 227 of file adminhandler.php.

AdminHandler::set_admin_template_vars ( theme  )  [protected]

Assigns the main menu to $mainmenu into the theme.

Definition at line 611 of file adminhandler.php.

Referenced by setup_admin_theme().

AdminHandler::setup_admin_theme ( page,
type = '' 
)

Create the admin theme instance

Parameters:
string $page The admin page requested
string $type The content type included in the request

Definition at line 73 of file adminhandler.php.

Referenced by act(), AdminThemesHandler::ajax_add_block(), AdminThemesHandler::ajax_delete_block(), and AdminThemesHandler::ajax_save_areas().


Member Data Documentation

AdminHandler::$active_theme = null [protected]

An instance of the active public theme, which allows plugin hooks to execute

Definition at line 16 of file adminhandler.php.


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