Class ActionHandler

Description

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

Located in /system/classes/actionhandler.php (line 9)


	
			
Direct descendents
Class Description
FeedbackHandler Habari FeedbackHandler Class Deals with feedback mechnisms: Commenting, Pingbacking, and the like.
AdminHandler Habari AdminHandler Class Backbone of the admin area, handles requests and functionality.
AtomHandler Habari AtomHandler class Produces Atom feeds and accepts Atom Publishing Protocol input
UserThemeHandler Class for handling default user theme actions.
InstallHandler The class which responds to installer actions
UserHandler Habari UserHandler Class
AjaxHandler Handles Ajax requests, sending them to plugin sinks.
XMLRPCServer A handler for incoming XMLRPC calls - an XMLRPC server
CronTab Static class to build and read cron entries
Variable Summary
string $action
Method Summary
void act (string $action)
void act_redirect ()
void __call (string $function, array $args)
Variables
string $action = '' (line 17)

Name of action to trigger

array $handler_vars = array() (line 24)

Internal array of handler variables (state info)

  • access: public
Methods
act (line 34)

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.

  • access: public
void act (string $action)
  • string $action: the action that was in the URL rule

Redefined in descendants as:
  • UserThemeHandler::act() : The UserThemeHandler's act() method differs from ActionHandler's act() method in one distinct way: if the Handler's theme variable registers an override action via Theme->register_action(), then that function is called instead of the default handler action.
act_redirect (line 86)

Helper method to allow RewriteRules to send a redirect. The method will redirect to the build_str of the RewriteRule if matched.

  • access: public
void act_redirect ()
__call (line 77)

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

  • access: public
void __call (string $function, array $args)
  • string $function: function name
  • array $args: function arguments

Documentation generated on Thu, 30 Oct 2008 20:31:01 +0100 by phpDocumentor 1.3.2