Manual:$wgAjaxExportList/zh
Appearance
此功能已在版本1.38.0中完全移除。 |
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.