PHP 클래스 Habari\ActionHandler

파일 보기 프로젝트 열기: habari/system

공개 프로퍼티들

프로퍼티 타입 설명
$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