MediaWiki  1.23.12
AjaxDispatcher Class Reference

Object-Oriented Ajax functions. More...

Collaboration diagram for AjaxDispatcher:

Public Member Functions

 __construct ()
 Load up our object with user supplied data. More...
 
 performAction ()
 Pass the request to our internal function. More...
 

Private Attributes

array $args
 Arguments passed $args. More...
 
string $func_name
 Name of the requested handler $func_name. More...
 
string $mode
 The way the request was made, either a 'get' or a 'post' $mode. More...
 

Detailed Description

Object-Oriented Ajax functions.

Definition at line 32 of file AjaxDispatcher.php.

Constructor & Destructor Documentation

◆ __construct()

AjaxDispatcher::__construct ( )

Load up our object with user supplied data.

Definition at line 50 of file AjaxDispatcher.php.

References array(), wfProfileIn(), and wfProfileOut().

Member Function Documentation

◆ performAction()

AjaxDispatcher::performAction ( )

Pass the request to our internal function.

BEWARE! Data are passed as they have been supplied by the user, they should be carefully handled in the function processing the request.

Definition at line 96 of file AjaxDispatcher.php.

References $e, $wgUser, global, User\isEveryoneAllowed(), wfDebug(), wfHttpError(), wfProfileIn(), and wfProfileOut().

Member Data Documentation

◆ $args

array AjaxDispatcher::$args
private

Arguments passed $args.

Definition at line 45 of file AjaxDispatcher.php.

◆ $func_name

string AjaxDispatcher::$func_name
private

Name of the requested handler $func_name.

Definition at line 41 of file AjaxDispatcher.php.

◆ $mode

string AjaxDispatcher::$mode
private

The way the request was made, either a 'get' or a 'post' $mode.

Definition at line 36 of file AjaxDispatcher.php.


The documentation for this class was generated from the following file: