Habari\AjaxHandler::act_ajax PHP Method

act_ajax() public method

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 ( )
    public function act_ajax()
    {
        /**
         * Triggers the ajax plugin action for the context.
         *
         * @see AjaxHandler::act_ajax()
         * @action ajax_{$context}
         */
        Plugins::act('ajax_' . $this->handler_vars['context'], $this);
        // if this is the locale context, serve the locale javascript
        if ($this->handler_vars['context'] == 'locale') {
            $this->locale_js();
        }
    }