Inheritance diagram for AdminHandler:
Collaboration diagram for AdminHandler:Public Member Functions | |
| __construct () | |
| setup_admin_theme ($page, $type= '') | |
| act_admin () | |
| act_admin_ajax () | |
| get_sysinfo () | |
| get_blank ($content= '') | |
| default_post_type_display ($type, $foruse) | |
| create_theme () | |
Static Public Member Functions | |
| static | setup_stacks () |
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 | |
Habari AdminHandler Class Backbone of the admin area, handles requests and functionality.
Definition at line 16 of file adminhandler.php.
| AdminHandler::__construct | ( | ) |
Verifies user credentials before creating the theme and displaying the request.
Definition at line 24 of file adminhandler.php.
| AdminHandler::act_admin | ( | ) |
Dispatches the request to the defined method. (ie: post_{page})
Definition at line 106 of file adminhandler.php.
| AdminHandler::act_admin_ajax | ( | ) |
Handle incoming requests to /admin_ajax for admin ajax requests
Definition at line 170 of file adminhandler.php.
| AdminHandler::default_post_type_display | ( | $ | type, | |
| $ | foruse | |||
| ) |
How to display the built-in post types.
Definition at line 570 of file adminhandler.php.
| AdminHandler::display | ( | $ | template_name | ) | [protected] |
Helper function to assign all handler_vars into the theme and displays a theme template.
| template_name | Name of template to display (note: not the filename) |
Definition at line 597 of file adminhandler.php.
Referenced by act_admin(), AdminThemesHandler::ajax_add_block(), AdminThemesHandler::ajax_delete_block(), AdminThemesHandler::ajax_save_areas(), get_blank(), AdminCommentsHandler::get_comment(), AdminThemesHandler::get_configure_block(), AdminDashboardHandler::get_dashboard(), AdminGroupsHandler::get_group(), AdminGroupsHandler::get_groups(), AdminImportHandler::get_import(), AdminPluginsHandler::get_plugins(), AdminPostsHandler::get_publish(), get_sysinfo(), AdminTagsHandler::get_tags(), AdminCommentsHandler::post_comments(), AdminGroupsHandler::post_groups(), and AdminLogsHandler::post_logs().
| AdminHandler::filter_menus_by_permission | ( | $ | menuarray | ) | [protected] |
Remove menus for which the user does not have qualifying permissions.
| array | $menuarray The master array of admin menu items |
Definition at line 383 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.
| string | $content Optional default content to display |
Definition at line 260 of file adminhandler.php.
Referenced by act_admin(), AdminPostsHandler::get_publish(), and AdminUsersHandler::get_user().
| AdminHandler::get_main_menu | ( | $ | theme | ) | [protected] |
Assembles the main menu for the admin area.
| Theme | $theme The theme to add the menu to |
Definition at line 272 of file adminhandler.php.
Referenced by set_admin_template_vars().
| AdminHandler::get_sysinfo | ( | ) |
Handles get requests for the system information page.
Definition at line 190 of file adminhandler.php.
| AdminHandler::set_admin_template_vars | ( | $ | theme | ) | [protected] |
Assigns the main menu to $mainmenu into the theme.
Definition at line 588 of file adminhandler.php.
Referenced by setup_admin_theme().
| AdminHandler::setup_admin_theme | ( | $ | page, | |
| $ | type = '' | |||
| ) |
Create the admin theme instance
| string | $page The admin page requested | |
| string | $type The content type included in the request |
Definition at line 79 of file adminhandler.php.
Referenced by act_admin(), AdminThemesHandler::ajax_add_block(), AdminThemesHandler::ajax_delete_block(), and AdminThemesHandler::ajax_save_areas().
| static AdminHandler::setup_stacks | ( | ) | [static] |
Setup the default admin javascript stack here so that it can be called from plugins, etc. This is not an ideal solution, but works for now.
Definition at line 607 of file adminhandler.php.
Referenced by __construct().
AdminHandler::$active_theme = null [protected] |
An instance of the active public theme, which allows plugin hooks to execute
Definition at line 19 of file adminhandler.php.
Referenced by AdminDashboardHandler::get_dashboard().
1.7.1