Joomla Platform  13.1
Documentation des API du framework Joomla Platform
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JMediawikiImages
+ Graphe d'héritage de JMediawikiImages:
+ Graphe de collaboration de JMediawikiImages:

Liste de tous les membres

Fonctions membres publiques

 getImages (array $titles, $imagelimit=null, $imagecontinue=null, $imimages=null, $imdir=null)
 getImagesUsed (array $titles)
 getImageInfo (array $liprop=null, $lilimit=null, $listart=null, $liend=null, $liurlwidth=null, $liurlheight=null, $limetadataversion=null, $liurlparam=null, $licontinue=null)
 enumerateImages ($aifrom=null, $aito=null, $aiprefix=null, $aiminsize=null, $aimaxsize=null, $ailimit=null, $aidir=null, $aisha1=null, $aisha1base36=null, array $aiprop=null, $aimime=null)
- Fonctions membres publiques inherited from JMediawikiObject
 __construct (JRegistry $options=null, JMediawikiHttp $client=null)
 buildParameter (array $params)
 validateResponse ($response)

Additional Inherited Members

- Fonctions membres protégées inherited from JMediawikiObject
 fetchUrl ($path)
- Attributs protégés inherited from JMediawikiObject
 $options
 $client

Description détaillée

Définition à la ligne 19 du fichier images.php.


Documentation des fonctions membres

JMediawikiImages::enumerateImages (   $aifrom = null,
  $aito = null,
  $aiprefix = null,
  $aiminsize = null,
  $aimaxsize = null,
  $ailimit = null,
  $aidir = null,
  $aisha1 = null,
  $aisha1base36 = null,
array  $aiprop = null,
  $aimime = null 
)

Method to enumerate all images.

Paramètres:
string$aifromThe image title to start enumerating from.
string$aitoThe image title to stop enumerating at.
string$aiprefixSearch for all image titles that begin with this value.
integer$aiminsizeLimit to images with at least this many bytes.
integer$aimaxsizeLimit to images with at most this many bytes.
integer$ailimitHow many images in total to return.
string$aidirThe direction in which to list.
string$aisha1SHA1 hash of image.
string$aisha1base36SHA1 hash of image in base 36.
array$aipropWhat image information to get.
string$aimimeWhat MIME type to search for.
Renvoie:
object
Depuis:
12.3

Définition à la ligne 185 du fichier images.php.

{
// Build the request.
$path = '?action=query&list=allimages';
if (isset($aifrom))
{
$path .= '&aifrom=' . $aifrom;
}
if (isset($aito))
{
$path .= '&aito=' . $aito;
}
if (isset($aiprefix))
{
$path .= '&aiprefix=' . $aiprefix;
}
if (isset($aiminsize))
{
$path .= '&aiminsize=' . $aiminsize;
}
if (isset($aimaxsize))
{
$path .= '&aimaxsize=' . $aimaxsize;
}
if (isset($ailimit))
{
$path .= '&ailimit=' . $ailimit;
}
if (isset($aidir))
{
$path .= '&aidir=' . $aidir;
}
if (isset($aisha1))
{
$path .= '&aisha1=' . $aisha1;
}
if (isset($aisha1base36))
{
$path .= '&$aisha1base36=' . $aisha1base36;
}
if (isset($aiprop))
{
$path .= '&aiprop=' . $this->buildParameter($aiprop);
}
if (isset($aimime))
{
$path .= '&aimime=' . $aimime;
}
// Send the request.
$response = $this->client->get($this->fetchUrl($path));
return $this->validateResponse($response);
}
JMediawikiImages::getImageInfo ( array  $liprop = null,
  $lilimit = null,
  $listart = null,
  $liend = null,
  $liurlwidth = null,
  $liurlheight = null,
  $limetadataversion = null,
  $liurlparam = null,
  $licontinue = null 
)

Method to get all image information and upload history.

Paramètres:
array$lipropWhat image information to get.
integer$lilimitHow many image revisions to return.
string$listartTimestamp to start listing from.
string$liendTimestamp to stop listing at.
integer$liurlwidthURL to an image scaled to this width will be returned..
integer$liurlheightURL to an image scaled to this height will be returned.
string$limetadataversionVersion of metadata to use.
string$liurlparamA handler specific parameter string.
boolean$licontinueWhen more results are available, use this to continue.
Renvoie:
object
Depuis:
12.3

Définition à la ligne 109 du fichier images.php.

{
// Build the request.
$path = '?action=query&prop=imageinfo';
if (isset($liprop))
{
$path .= '&liprop=' . $this->buildParameter($liprop);
}
if (isset($lilimit))
{
$path .= '&lilimit=' . $lilimit;
}
if (isset($listart))
{
$path .= '&listart=' . $listart;
}
if (isset($liend))
{
$path .= '&liend=' . $liend;
}
if (isset($liurlwidth))
{
$path .= '&liurlwidth=' . $liurlwidth;
}
if (isset($liurlheight))
{
$path .= '&liurlheight=' . $liurlheight;
}
if (isset($limetadataversion))
{
$path .= '&limetadataversion=' . $limetadataversion;
}
if (isset($liurlparam))
{
$path .= '&liurlparam=' . $liurlparam;
}
if ($licontinue)
{
$path .= '&alcontinue=';
}
// Send the request.
$response = $this->client->get($this->fetchUrl($path));
return $this->validateResponse($response);
}
JMediawikiImages::getImages ( array  $titles,
  $imagelimit = null,
  $imagecontinue = null,
  $imimages = null,
  $imdir = null 
)

Method to get all images contained on the given page(s).

Paramètres:
array$titlesPage titles to retrieve images.
integer$imagelimitHow many images to return.
boolean$imagecontinueWhen more results are available, use this to continue.
integer$imimagesOnly list these images.
string$imdirThe direction in which to list.
Renvoie:
object
Depuis:
12.3

Définition à la ligne 35 du fichier images.php.

{
// Build the request.
$path = '?action=query&prop=images';
// Append titles to the request.
$path .= '&titles=' . $this->buildParameter($titles);
if (isset($imagelimit))
{
$path .= '&imagelimit=' . $imagelimit;
}
if ($imagecontinue)
{
$path .= '&imagecontinue=';
}
if (isset($imimages))
{
$path .= '&imimages=' . $imimages;
}
if (isset($imdir))
{
$path .= '&imdir=' . $imdir;
}
// Send the request.
$response = $this->client->get($this->fetchUrl($path));
return $this->validateResponse($response);
}
JMediawikiImages::getImagesUsed ( array  $titles)

Method to get all images contained on the given page(s).

Paramètres:
array$titlesPage titles to retrieve links.
Renvoie:
object
Depuis:
12.3

Définition à la ligne 78 du fichier images.php.

{
// Build the request.
$path = '?action=query&generator=images&prop=info';
// Append titles to the request.
$path .= '&titles=' . $this->buildParameter($titles);
// Send the request.
$response = $this->client->get($this->fetchUrl($path));
return $this->validateResponse($response);
}

La documentation de cette classe a été générée à partir du fichier suivant :