Podręcznik:$wgAjaxExportList
Ta przestarzała funkcja nie powinna być już dłużej używana, ale jest nadal dostępna ze względu na wsteczną kompatybilność. Ta funkcja została zdeprecjonowana w wersji 1.27.0. |
Ajax: $wgAjaxExportList | |
---|---|
List of functions in AjaxFunctions.php that are callable via action=ajax |
|
Wprowadzono w wersji: | 1.6.0 (r13364) |
Przestarzałe w wersji: | 1.27.0 (Gerrit change 262460; git #0aafc0bf) |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (array of strings) |
Domyślna wartość: | [] (1.8+)[ 'wfSajaxSearch' ] (1.6-1.7) |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
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 and $wgAjaxWatch cause wfSajaxSearch
and wfAjaxWatch
to be added to this array, respectively.