PHP Класс Habari\AjaxHandler

Наследование: extends ActionHandler
Показать файл Открыть проект

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

Метод Описание
__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