Manual:$wgAjaxExportList

This page is a translated version of the page Manual:$wgAjaxExportList and the translation is 78% complete.
Ajax: $wgAjaxExportList
Lista de funções no AjaxFunctions.php as quais podem ser chamadas via action=ajax
Introduzido na versão:1.6.0 (r13364)
Depreciado na versão:1.27.0 (Gerrit change 262460; git #0aafc0bf)
Removido na versão:1.38.0 (Gerrit change 741941; git #9bcd3fdf)
Valores permitidos:(arranjo de cadeias de caracteres)
Valor padrão:[] (1.8+)
[ 'wfSajaxSearch' ] (1.6-1.7)

Detalhes

Registro destinado a funções chamáveis via Ajax. Essa é uma maneira com a qual extensões (e algumas funções) poderem tornar suas funções chamáveis a partir do 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 e $wgAjaxWatch fazem com que wfSajaxSearch e wfAjaxWatch sejam respectivamente adicionados a esse arranjo.

Ver também