Manual:$wgAjaxExportList/ru

Category:MediaWiki configuration settings/ru#AjaxExportListCategory:MediaWiki configuration settings introduced in version 1.6.0/ru#AjaxExportListCategory:MediaWiki configuration settings deprecated in version 1.27.0/ru#AjaxExportListCategory:MediaWiki configuration settings removed in version 1.38.0/ru#AjaxExportListCategory:MediaWiki deprecated or obsolete features/ru#AjaxExportListCategory:Ajax variables/ru#AjaxExportList
Ajax: $wgAjaxExportList
List of functions in AjaxFunctions.php that are callable via action=ajax
Введено в версии:1.6.0 (r13364)
Устарела с версии:1.27.0 (Gerrit change 262460; git #0aafc0bf)
Удалено в версии:1.38.0 (Gerrit change 741941; git #9bcd3fdf)
Допустимые значения:(массив строк)
Значение по умолчанию:[] (1.8+)
[ 'wfSajaxSearch' ] (1.6-1.7)

Подробности

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.

См. также

Category:Ajax variables/ru Category:MediaWiki configuration settings/ru Category:MediaWiki configuration settings deprecated in version 1.27.0/ru Category:MediaWiki configuration settings introduced in version 1.6.0/ru Category:MediaWiki configuration settings removed in version 1.38.0/ru Category:MediaWiki deprecated or obsolete features/ru