Images
扩展 AbstractMediawikiObjectMediaWiki API Images 类。
| 自 |
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请求参数
enumerateImages
用于枚举所有图像的方法。
enumerateImages( aifrom = null, aito = null, aiprefix = null, aiminsize = null, aimaxsize = null, ailimit = null, aidir = null, aisha1 = null, aisha1base36 = null, array aiprop = null, aimime = null) :
| 自 |
1.0 |
|---|
参数
- aifrom
string要从该图像标题开始枚举。- aito
string要枚举到的图像标题。- aiprefix
string搜索所有以该值开头的图像标题。- aiminsize
int限制为至少具有此字节数的图像。- aimaxsize
int限制为最多具有此字节数的图像。- ailimit
int要返回的总图像数。- aidir
string列出的方向。- aisha1
string图像的 SHA1 哈希。- aisha1base36
string图像的 SHA1 哈希(以 36 进制表示)。- aiprop
array<string|int, mixed>|null要获取的图像信息。- aimime
string要搜索的 MIME 类型。
响应
object
fetchUrl
用于构建并返回请求的完整请求 URL 的方法。
fetchUrl( path) :
| 自 |
1.0 |
|---|
参数
- path
string要变形的 URL
响应
string请求 URL。
getImageInfo
用于获取所有图像信息和上传历史记录的方法。
getImageInfo(array liprop = null, lilimit = null, listart = null, liend = null, liurlwidth = null, liurlheight = null, limetadataversion = null, liurlparam = null, licontinue = null) :
| 自 |
1.0 |
|---|
参数
- liprop
array<string|int, mixed>|null要获取的图像信息。- lilimit
int要返回的图像修订次数。- listart
string要从该时间戳开始列出。- liend
string要列出的时间戳。- liurlwidth
int将返回缩放到此宽度的图像的 URL。- liurlheight
int将返回缩放到此高度的图像的 URL。- limetadataversion
string要使用的元数据版本。- liurlparam
string处理程序特定的参数字符串。- licontinue
bool如果还有更多结果可用,请使用此选项继续。
响应
object
getImages
用于获取给定页面中包含的所有图像的方法。
getImages(mixed||string|int titles, imagelimit = null, imagecontinue = null, imimages = null, imdir = null) :
| 自 |
1.0 |
|---|
参数
- titles
array<string|int, mixed>要检索图像的页面标题。- imagelimit
int要返回的图像数。- imagecontinue
bool如果还有更多结果可用,请使用此选项继续。- imimages
int仅列出这些图像。- imdir
string列出的方向。
响应
object
getImagesUsed
用于获取给定页面中包含的所有图像的方法。
getImagesUsed(mixed||string|int titles) :
| 自 |
1.0 |
|---|
参数
- titles
array<string|int, mixed>要检索链接的页面标题。
响应
object
validateResponse
用于验证响应是否有错误的方法
validateResponse(\Joomla\Http\Response response) : \SimpleXMLElement