PHP Class Habari\UserThemeHandler

Inheritance: extends ActionHandler
Datei anzeigen Open project: habari/system

Public Methods

Method Description
__construct ( ) Constructor for the default theme handler.
act ( $action ) : boolean 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.

Protected Methods

Method Description
display ( $template_name ) Helper function which automatically assigns all handler_vars into the theme and displays a theme template

Method Details

__construct() public method

Constructor for the default theme handler.
public __construct ( )

act() public method

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.
public act ( $action ) : boolean
return boolean did the action succeed?

display() protected method

Helper function which automatically assigns all handler_vars into the theme and displays a theme template
protected display ( $template_name )