Manual:$wgAjaxExportList

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgAjaxExportList and the translation is 44% complete.
Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎русский • ‎中文 • ‎日本語
Ajax: $wgAjaxExportList
List of functions in AjaxFunctions.php that are callable via action=ajax
Introducido en la versión:1.6.0 (r13364)
Deprecated in version:1.27.0 (git #0aafc0bf)
Eliminado en la versión:aún se usa
Valores permitidos:(array of strings)
Valor predeterminado:[] (1.8+)
[ 'wfSajaxSearch' ] (1.6-1.7)

Detalles

Registry for functions callable via Ajax. This is a way for extensions (and some functions) to make functions callable from JavaScript. Making an Ajax request to index.php with the action=ajax&rs=funcname&rsargs[0]=arg1&rsargs[1]=arg2&... parameters will result in a funcname( "arg1", "arg2", ... ) call in PHP, as long as funcname is listed in $wgAjaxExportList. Such functions then usually return an AjaxResponse object.

$wgAjaxSearch y $wgAjaxWatch causan que wfSajaxSearch y wfAjaxWatch se añadan a este arreglo, respectivamente.

Véase también