Inheritance diagram for ActionHandler:Public Member Functions | |
| act ($action) | |
| __call ($function, $args) | |
| act_redirect () | |
| setup_theme () | |
Public Attributes | |
| $action = '' | |
| $handler_vars = null | |
| $theme = null | |
A base class handler for URL-based actions. All ActionHandlers must extend this class for the Controller to call their actions.
Definition at line 12 of file actionhandler.php.
| ActionHandler::__call | ( | $ | function, | |
| $ | args | |||
| ) |
Helper method to convert calls to $handler->my_action() to $handler->act('my_action');
| string | $function function name | |
| array | $args function arguments |
Definition at line 91 of file actionhandler.php.
| ActionHandler::act | ( | $ | action | ) |
All handlers must implement act() to conform to handler API. This is the default implementation of act(), which attempts to call a class member method of $this->act_$action(). Any subclass is welcome to override this default implementation.
| string | $action the action that was in the URL rule |
Plugin action to allow plugins to execute before a certain action is triggered
Plugin action to allow plugins to execute after a certain action is triggered
Reimplemented in PluginHandler, and UserThemeHandler.
Definition at line 44 of file actionhandler.php.
Referenced by __call(), AtomHandler::__construct(), FeedbackHandler::act_add_comment(), AdminHandler::act_admin(), AjaxHandler::act_ajax(), AjaxHandler::act_auth_ajax(), AtomHandler::act_introspection(), UserHandler::act_logout(), AtomHandler::act_rsd(), FeedbackHandler::add_comment(), AtomHandler::add_comments(), AtomHandler::add_posts(), AtomHandler::create_atom_wrapper(), AdminCommentsHandler::form_comment(), AtomHandler::get_collection(), AdminCommentsHandler::get_comment(), AtomHandler::get_comments(), AtomHandler::get_entry(), AdminPluginsHandler::get_plugin_toggle(), AdminUsersHandler::get_user(), AtomHandler::post_collection(), and AtomHandler::put_entry().
| ActionHandler::act_redirect | ( | ) |
Helper method to allow RewriteRules to send a redirect. The method will redirect to the build_str of the RewriteRule if matched.
Definition at line 100 of file actionhandler.php.
| ActionHandler::setup_theme | ( | ) |
Load the active theme and create a new Theme instance. Also, assign the request variables.
Definition at line 110 of file actionhandler.php.
Referenced by UserThemeHandler::__construct(), and PluginHandler::__construct().
| Theme ActionHandler::$theme = null |
Storage for the theme used, if created
Definition at line 34 of file actionhandler.php.
Referenced by AdminDashboardHandler::filter_dash_module_add_item(), AdminHandler::get_main_menu(), AdminThemesHandler::get_themes(), and AdminHandler::set_admin_template_vars().
1.7.1