Liste de tous les membres
Fonctions membres publiques |
| getLinks (array $titles, array $plnamespace=null, $pllimit=null, $plcontinue=null, array $pltitles=null, $pldir=null) |
| getLinksUsed (array $titles) |
| getIWLinks (array $titles, $iwurl=false, $iwlimit=null, $iwcontinue=false, $iwprefix=null, $iwtitle=null, $iwdir=null) |
| getLangLinks (array $titles, $lllimit=null, $llcontinue=false, $llurl=null, $lllang=null, $lltitle=null, $lldir=null) |
| getExtLinks (array $titles, $ellimit=null, $eloffset=null, $elprotocol=null, $elquery=null) |
| enumerateLinks ($alcontinue=false, $alfrom=null, $alto=null, $alprefix=null, $alunique=null, array $alprop=null, $alnamespace=null, $allimit=null) |
| __construct (JRegistry $options=null, JMediawikiHttp $client=null) |
| buildParameter (array $params) |
| validateResponse ($response) |
Description détaillée
Définition à la ligne 19 du fichier links.php.
Documentation des fonctions membres
JMediawikiLinks::enumerateLinks |
( |
|
$alcontinue = false , |
|
|
|
$alfrom = null , |
|
|
|
$alto = null , |
|
|
|
$alprefix = null , |
|
|
|
$alunique = null , |
|
|
array |
$alprop = null , |
|
|
|
$alnamespace = null , |
|
|
|
$allimit = null |
|
) |
| |
Method to enumerate all links that point to a given namespace.
- Paramètres:
-
boolean | $alcontinue | When more results are available, use this to continue. |
string | $alfrom | Start listing at this title. The title need not exist. |
string | $alto | The page title to stop enumerating at. |
string | $alprefix | Search for all page titles that begin with this value. |
string | $alunique | Only show unique links. |
array | $alprop | What pieces of information to include. |
string | $alnamespace | The namespace to enumerate. |
integer | $allimit | Number of links to return. |
- Renvoie:
- object
- Depuis:
- 12.3
Définition à la ligne 279 du fichier links.php.
{
$path = '?action=query&meta=siteinfo';
if ($alcontinue)
{
$path .= '&alcontinue=';
}
if (isset($alfrom))
{
$path .= '&alfrom=' . $alfrom;
}
if (isset($alto))
{
$path .= '&alto=' . $alto;
}
if (isset($alprefix))
{
$path .= '&alprefix=' . $alprefix;
}
if (isset($alunique))
{
$path .= '&alunique=' . $alunique;
}
if (isset($alprop))
{
}
if (isset($alnamespace))
{
$path .= '&alnamespace=' . $alnamespace;
}
if (isset($allimit))
{
$path .= '&allimit=' . $allimit;
}
$response = $this->client->get($this->
fetchUrl($path));
}
JMediawikiLinks::getExtLinks |
( |
array |
$titles, |
|
|
|
$ellimit = null , |
|
|
|
$eloffset = null , |
|
|
|
$elprotocol = null , |
|
|
|
$elquery = null |
|
) |
| |
Method to return all external urls from the given page(s).
- Paramètres:
-
array | $titles | Page titles to retrieve links. |
integer | $ellimit | Number of links to return. |
string | $eloffset | When more results are available, use this to continue. |
string | $elprotocol | Protocol of the url. |
string | $elquery | Search string without protocol. |
- Renvoie:
- object
- Depuis:
- 12.3
Définition à la ligne 229 du fichier links.php.
{
$path = '?action=query&prop=extlinks';
if (isset($ellimit))
{
$path .= '&ellimit=' . $ellimit;
}
if (isset($eloffset))
{
$path .= '&eloffset=' . $eloffset;
}
if (isset($elprotocol))
{
$path .= '&elprotocol=' . $elprotocol;
}
if (isset($elquery))
{
$path .= '&elquery=' . $elquery;
}
$response = $this->client->get($this->
fetchUrl($path));
}
JMediawikiLinks::getIWLinks |
( |
array |
$titles, |
|
|
|
$iwurl = false , |
|
|
|
$iwlimit = null , |
|
|
|
$iwcontinue = false , |
|
|
|
$iwprefix = null , |
|
|
|
$iwtitle = null , |
|
|
|
$iwdir = null |
|
) |
| |
Method to return all interwiki links from the given page(s).
- Paramètres:
-
array | $titles | Page titles to retrieve links. |
boolean | $iwurl | Whether to get the full url. |
integer | $iwlimit | Number of interwiki links to return. |
boolean | $iwcontinue | When more results are available, use this to continue. |
string | $iwprefix | Prefix for the interwiki. |
string | $iwtitle | Interwiki link to search for. |
string | $iwdir | The direction in which to list. |
- Renvoie:
- object
- Depuis:
- 12.3
Définition à la ligne 113 du fichier links.php.
{
$path = '?action=query&prop=links';
if ($iwurl)
{
$path .= '&iwurl=';
}
if (isset($iwlimit))
{
$path .= '&iwlimit=' . $iwlimit;
}
if ($iwcontinue)
{
$path .= '&iwcontinue=';
}
if (isset($iwprefix))
{
$path .= '&iwprefix=' . $iwprefix;
}
if (isset($iwtitle))
{
$path .= '&iwtitle=' . $iwtitle;
}
if (isset($iwdir))
{
$path .= '&iwdir=' . $iwdir;
}
$response = $this->client->get($this->
fetchUrl($path));
}
JMediawikiLinks::getLangLinks |
( |
array |
$titles, |
|
|
|
$lllimit = null , |
|
|
|
$llcontinue = false , |
|
|
|
$llurl = null , |
|
|
|
$lllang = null , |
|
|
|
$lltitle = null , |
|
|
|
$lldir = null |
|
) |
| |
Method to return all interlanguage links from the given page(s).
- Paramètres:
-
array | $titles | Page titles to retrieve links. |
integer | $lllimit | Number of langauge links to return. |
boolean | $llcontinue | When more results are available, use this to continue. |
string | $llurl | Whether to get the full URL. |
string | $lllang | Language code. |
string | $lltitle | Link to search for. |
string | $lldir | The direction in which to list. |
- Renvoie:
- object
- Depuis:
- 12.3
Définition à la ligne 172 du fichier links.php.
{
$path = '?action=query&prop=langlinks';
if (isset($lllimit))
{
$path .= '&lllimit=' . $lllimit;
}
if ($llcontinue)
{
$path .= '&llcontinue=';
}
if (isset($llurl))
{
$path .= '&llurl=' . $llurl;
}
if (isset($lllang))
{
$path .= '&lllang=' . $lllang;
}
if (isset($lltitle))
{
$path .= '&lltitle=' . $lltitle;
}
if (isset($lldir))
{
$path .= '&lldir=' . $lldir;
}
$response = $this->client->get($this->
fetchUrl($path));
}
JMediawikiLinks::getLinks |
( |
array |
$titles, |
|
|
array |
$plnamespace = null , |
|
|
|
$pllimit = null , |
|
|
|
$plcontinue = null , |
|
|
array |
$pltitles = null , |
|
|
|
$pldir = null |
|
) |
| |
Method to return all links from the given page(s).
- Paramètres:
-
array | $titles | Page titles to retrieve links. |
array | $plnamespace | Namespaces to get links. |
string | $pllimit | Number of links to return. |
string | $plcontinue | Continue when more results are available. |
array | $pltitles | List links to these titles. |
string | $pldir | Direction of listing. |
- Renvoie:
- object
- Depuis:
- 12.3
Définition à la ligne 36 du fichier links.php.
{
$path = '?action=query&prop=links';
if (isset($plnamespace))
{
}
if (isset($pllimit))
{
$path .= '&pllimit=' . $pllimit;
}
if (isset($plcontinue))
{
$path .= '&plcontinue=' . $plcontinue;
}
if (isset($pltitles))
{
}
if (isset($pldir))
{
$path .= '&pldir=' . $pldir;
}
$response = $this->client->get($this->
fetchUrl($path));
}
JMediawikiLinks::getLinksUsed |
( |
array |
$titles | ) |
|
Method to return info about the link pages.
- Paramètres:
-
array | $titles | Page titles to retrieve links. |
- Renvoie:
- object
- Depuis:
- 12.3
Définition à la ligne 84 du fichier links.php.
{
$path = '?action=query&generator=links&prop=info';
$response = $this->client->get($this->
fetchUrl($path));
}
La documentation de cette classe a été générée à partir du fichier suivant :