PHP Класс Habari\ActionHandler

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$action string Name of action to trigger
$handler_vars SuperGlobal Internal array of handler variables (state info)
$theme Theme Storage for the theme used, if created

Открытые методы

Метод Описание
__call ( string $function, array $args ) Helper method to convert calls to $handler->my_action() to $handler->act('my_action');
act ( string $action ) All handlers must implement act() to conform to handler API.
act_redirect ( ) Helper method to allow RewriteRules to send a redirect. The method will redirect to the build_str of the RewriteRule if matched.
setup_theme ( ) Load the active theme and create a new Theme instance.

Описание методов

__call() публичный Метод

Helper method to convert calls to $handler->my_action() to $handler->act('my_action');
public __call ( string $function, array $args )
$function string function name
$args array function arguments

act() публичный Метод

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.
public act ( string $action )
$action string the action that was in the URL rule

act_redirect() публичный Метод

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

setup_theme() публичный Метод

Also, assign the request variables.
public setup_theme ( )

Описание свойств

$action публичное свойство

Name of action to trigger
См. также: act()
public string $action
Результат string

$handler_vars публичное свойство

Internal array of handler variables (state info)
public SuperGlobal,habari $handler_vars
Результат SuperGlobal

$theme публичное свойство

Storage for the theme used, if created
public Theme,habari $theme
Результат Theme