Source for file images.php
Documentation is available at images.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
* MediaWiki API Images class for the Joomla Platform.
* @package Joomla.Platform
* Method to get all images contained on the given page(s).
* @param array $titles Page titles to retrieve images.
* @param integer $imagelimit How many images to return.
* @param boolean $imagecontinue When more results are available, use this to continue.
* @param integer $imimages Only list these images.
* @param string $imdir The direction in which to list.
public function getImages(array $titles, $imagelimit =
null, $imagecontinue =
null, $imimages =
null, $imdir =
null)
$path =
'?action=query&prop=images';
// Append titles to the request.
$path .=
'&titles=' .
$this->buildParameter($titles);
$path .=
'&imagelimit=' .
$imagelimit;
$path .=
'&imagecontinue=';
$path .=
'&imimages=' .
$imimages;
$path .=
'&imdir=' .
$imdir;
* Method to get all images contained on the given page(s).
* @param array $titles Page titles to retrieve links.
$path =
'?action=query&generator=images&prop=info';
// Append titles to the request.
$path .=
'&titles=' .
$this->buildParameter($titles);
$response =
$this->client->get($this->fetchUrl($path));
* Method to get all image information and upload history.
* @param array $liprop What image information to get.
* @param integer $lilimit How many image revisions to return.
* @param string $listart Timestamp to start listing from.
* @param string $liend Timestamp to stop listing at.
* @param integer $liurlwidth URL to an image scaled to this width will be returned..
* @param integer $liurlheight URL to an image scaled to this height will be returned.
* @param string $limetadataversion Version of metadata to use.
* @param string $liurlparam A handler specific parameter string.
* @param boolean $licontinue When more results are available, use this to continue.
public function getImageInfo(array $liprop =
null, $lilimit =
null, $listart =
null, $liend =
null, $liurlwidth =
null,
$liurlheight =
null, $limetadataversion =
null, $liurlparam =
null, $licontinue =
null)
$path =
'?action=query&prop=imageinfo';
$path .=
'&lilimit=' .
$lilimit;
$path .=
'&listart=' .
$listart;
$path .=
'&liend=' .
$liend;
$path .=
'&liurlwidth=' .
$liurlwidth;
$path .=
'&liurlheight=' .
$liurlheight;
if (isset
($limetadataversion))
$path .=
'&limetadataversion=' .
$limetadataversion;
$path .=
'&liurlparam=' .
$liurlparam;
* Method to enumerate all images.
* @param string $aifrom The image title to start enumerating from.
* @param string $aito The image title to stop enumerating at.
* @param string $aiprefix Search for all image titles that begin with this value.
* @param integer $aiminsize Limit to images with at least this many bytes.
* @param integer $aimaxsize Limit to images with at most this many bytes.
* @param integer $ailimit How many images in total to return.
* @param string $aidir The direction in which to list.
* @param string $aisha1 SHA1 hash of image.
* @param string $aisha1base36 SHA1 hash of image in base 36.
* @param array $aiprop What image information to get.
* @param string $aimime What MIME type to search for.
public function enumerateImages($aifrom =
null, $aito =
null, $aiprefix =
null, $aiminsize =
null, $aimaxsize =
null, $ailimit =
null,
$aidir =
null, $aisha1 =
null, $aisha1base36 =
null, array $aiprop =
null, $aimime =
null)
$path =
'?action=query&list=allimages';
$path .=
'&aifrom=' .
$aifrom;
$path .=
'&aito=' .
$aito;
$path .=
'&aiprefix=' .
$aiprefix;
$path .=
'&aiminsize=' .
$aiminsize;
$path .=
'&aimaxsize=' .
$aimaxsize;
$path .=
'&ailimit=' .
$ailimit;
$path .=
'&aidir=' .
$aidir;
$path .=
'&aisha1=' .
$aisha1;
if (isset
($aisha1base36))
$path .=
'&$aisha1base36=' .
$aisha1base36;
$path .=
'&aimime=' .
$aimime;
Documentation generated on Tue, 19 Nov 2013 15:05:18 +0100 by phpDocumentor 1.4.3