PHP 클래스 Habari\AjaxHandler

상속: extends ActionHandler
파일 보기 프로젝트 열기: habari/system

공개 메소드들

메소드 설명
__static ( ) Register plugin hooks
act_ajax ( ) Handles incoming ajax requests for which the user need not be authenticated.
act_auth_ajax ( ) Handles incoming ajax requests for which the user must be authenticated.
locale_js ( ) Serves the locale Javascript to translate javascript strings.
register_ajax ( string $name, callable $fn ) Register a lambda/closure as an ajax dispatch function
register_auth_ajax ( string $name, callable $fn ) Register a lambda/closure as an auth_ajax dispatch function

메소드 상세

__static() 공개 정적인 메소드

Register plugin hooks
public static __static ( )

act_ajax() 공개 메소드

Forwards the request to plugin actions for the "context" portion of the URL. The following example would set the context of 'foo' and trigger the plugin action 'ajax_foo'. URL::get( 'ajax', 'context=foo' );
public act_ajax ( )

act_auth_ajax() 공개 메소드

Forwards the request to plugin actions for the "context" portion of the URL.
또한 보기: act_ajax()
public act_auth_ajax ( )

locale_js() 공개 메소드

Serves the locale Javascript to translate javascript strings.
public locale_js ( )

register_ajax() 공개 정적인 메소드

Register a lambda/closure as an ajax dispatch function
public static register_ajax ( string $name, callable $fn )
$name string The context of the ajax URL
$fn callable The function to dispatch to

register_auth_ajax() 공개 정적인 메소드

Register a lambda/closure as an auth_ajax dispatch function
public static register_auth_ajax ( string $name, callable $fn )
$name string The context of the ajax URL
$fn callable The function to dispatch to