MediaWiki  master
AjaxDispatcher Class Reference

Object-Oriented Ajax functions. More...

Collaboration diagram for AjaxDispatcher:

Public Member Functions

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

Private Attributes

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

Detailed Description

Object-Oriented Ajax functions.

Definition at line 37 of file AjaxDispatcher.php.

Constructor & Destructor Documentation

◆ __construct()

AjaxDispatcher::__construct ( Config  $config)

Load up our object with user supplied data.


Definition at line 64 of file AjaxDispatcher.php.

References $config.

Member Function Documentation

◆ performAction()

AjaxDispatcher::performAction ( User  $user)

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 109 of file AjaxDispatcher.php.

References wfDebug(), and wfHttpError().

Member Data Documentation

◆ $args

array AjaxDispatcher::$args

Arguments passed.

Definition at line 53 of file AjaxDispatcher.php.

◆ $config

Config AjaxDispatcher::$config

Definition at line 58 of file AjaxDispatcher.php.

Referenced by __construct().

◆ $func_name

string AjaxDispatcher::$func_name

Name of the requested handler.

Definition at line 48 of file AjaxDispatcher.php.

◆ $mode

string AjaxDispatcher::$mode

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

Definition at line 42 of file AjaxDispatcher.php.

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