AbstractMediawikiObject
Joomla 框架的 Mediawiki API 对象类。
抽象
| 自 |
1.0 |
|---|---|
| 包 |
Joomla 框架 |
方法
__construct
构造函数。
__construct(\Joomla\Registry\Registry options = null, \Joomla\Mediawiki\Http client = null) :
buildParameter
用于从字符串数组构建请求参数的方法。
buildParameter(mixed||string|int params) :
| 自 |
1.0 |
|---|
参数
- params
array<string|int, mixed>包含参数的字符串数组
响应
string请求参数
fetchUrl
用于构建并返回请求的完整请求 URL 的方法。
fetchUrl( path) :
| 自 |
1.0 |
|---|
参数
- path
string要变形的 URL
响应
string请求 URL。
validateResponse
用于验证响应中是否存在错误的方法
validateResponse(\Joomla\Http\Response response) : \SimpleXMLElement