Public Member Functions | Public Attributes

ActionHandler Class Reference

Inheritance diagram for ActionHandler:

List of all members.

Public Member Functions

 act ($action)
 __call ($function, $args)
 act_redirect ()
 setup_theme ()

Public Attributes

 $action = ''
 $handler_vars = null
 $theme = null

Detailed Description

A base class handler for URL-based actions. All ActionHandlers must extend this class for the Controller to call their actions.

Definition at line 14 of file actionhandler.php.


Member Function Documentation

ActionHandler::__call ( function,
args 
)

Helper method to convert calls to $handler->my_action() to $handler->act('my_action');

Parameters:
string $function function name
array $args function arguments

Definition at line 93 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.

Parameters:
string $action the action that was in the URL rule

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 in AdminHandler, PluginHandler, and UserThemeHandler.

Definition at line 46 of file actionhandler.php.

Referenced by __call(), AtomHandler::__construct(), FeedbackHandler::act_add_comment(), AjaxHandler::act_ajax(), AjaxHandler::act_auth_ajax(), AtomHandler::act_introspection(), UserHandler::act_logout(), AtomHandler::act_rsd(), RestHandler::act_verified_rest(), FeedbackHandler::add_comment(), AtomHandler::add_comments(), AtomHandler::add_posts(), AtomHandler::create_atom_wrapper(), AtomHandler::get_collection(), AtomHandler::get_comments(), AtomHandler::get_entry(), UserHandler::login_form(), 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 102 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 112 of file actionhandler.php.

Referenced by UserThemeHandler::__construct(), PluginHandler::__construct(), and UserHandler::login_form().


Member Data Documentation

Theme ActionHandler::$theme = null

Storage for the theme used, if created

Definition at line 36 of file actionhandler.php.

Referenced by AdminHandler::get_main_menu(), AdminThemesHandler::get_themes(), and AdminHandler::set_admin_template_vars().


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