Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
editPage ($title, $section=null, $sectiontitle=null, $text=null, $summary=null) | |
deletePageByName ($title, $reason=null, $watchlist=null, $oldimage=null) | |
deletePageById ($pageid, $reason=null, $watchlist=null, $oldimage=null) | |
undeletePage ($title, $reason=null, $timestamp=null, $watchlist=null) | |
movePageByName ($from, $to, $reason=null, $movetalk=null, $movesubpages=null, $noredirect=null, $watchlist=null, $ignorewarnings=null) | |
movePageById ($fromid, $to, $reason=null, $movetalk=null, $movesubpages=null, $noredirect=null, $watchlist=null, $ignorewarnings=null) | |
rollback ($title, $user, $summary=null, $markbot=null, $watchlist=null) | |
changeProtection ($title, $protections, $expiry=null, $reason=null, $cascade=null, $watchlist=null) | |
getPageInfo (array $titles, array $inprop=null, array $intoken=null, $incontinue=null) | |
getPageProperties (array $titles, $ppcontinue=null, $ppprop=null) | |
getRevisions (array $titles, array $rvprop=null, $rvparse=null, $rvlimit=null) | |
getPageTemplates (array $titles, array $tlnamespace=null, $tllimit=null, $tlcontinue=null, $tltemplates=null, $tldir=null) | |
getBackLinks ($bltitle, $blpageid=null, $blcontinue=null, array $blnamespace=null, $blfilterredirect=null, $bllimit=null, $blredirect=null) | |
getIWBackLinks ($iwbltitle, $iwblprefix=null, $iwblcontinue=null, $iwbllimit=null, array $iwblprop=null) | |
getToken ($user, $intoken) | |
Fonctions membres publiques hérités de JMediawikiObject | |
__construct (Registry $options=null, JMediawikiHttp $client=null) | |
buildParameter (array $params) | |
validateResponse ($response) | |
Membres hérités additionnels | |
Fonctions membres protégées hérités de JMediawikiObject | |
fetchUrl ($path) | |
Attributs protégés hérités de JMediawikiObject | |
$options | |
$client | |
MediaWiki API Pages class for the Joomla Platform.
changeProtection | ( | $title, | |
$protections, | |||
$expiry = null , |
|||
$reason = null , |
|||
$cascade = null , |
|||
$watchlist = null |
|||
) |
Method to change the protection level of a page.
string | $title | Title of the page you want to (un)protect. |
string | $protections | Pipe-separated list of protection levels. |
string | $expiry | Expiry timestamps. |
string | $reason | Reason for (un)protecting (optional). |
string | $cascade | Enable cascading protection. |
string | $watchlist | Unconditionally add or remove the page from your watchlist. |
Method to delete a page.
string | $pageid | Page ID of the page you want to delete. |
string | $reason | Reason for the deletion. |
string | $watchlist | Unconditionally add or remove the page from your watchlis. |
string | $oldimage | The name of the old image to delete. |
Method to delete a page.
string | $title | Title of the page you want to delete. |
string | $reason | Reason for the deletion. |
string | $watchlist | Unconditionally add or remove the page from your watchlis. |
string | $oldimage | The name of the old image to delete. |
getBackLinks | ( | $bltitle, | |
$blpageid = null , |
|||
$blcontinue = null , |
|||
array | $blnamespace = null , |
||
$blfilterredirect = null , |
|||
$bllimit = null , |
|||
$blredirect = null |
|||
) |
Method to get all pages that link to the given page.
string | $bltitle | Title to search. |
integer | $blpageid | Pageid to search. |
boolean | $blcontinue | When more results are available, use this to continue. |
array | $blnamespace | The namespace to enumerate. |
string | $blfilterredirect | How to filter for redirects.. |
integer | $bllimit | How many total pages to return. |
boolean | $blredirect | If linking page is a redirect, find all pages that link to that redirect as well. |
Références $path.
getIWBackLinks | ( | $iwbltitle, | |
$iwblprefix = null , |
|||
$iwblcontinue = null , |
|||
$iwbllimit = null , |
|||
array | $iwblprop = null |
||
) |
Method to get all pages that link to the given interwiki link.
string | $iwbltitle | Interwiki link to search for. Must be used with iwblprefix. |
string | $iwblprefix | Prefix for the interwiki. |
boolean | $iwblcontinue | When more results are available, use this to continue. |
integer | $iwbllimit | How many total pages to return. |
array | $iwblprop | Which properties to get. |
Références $path.
Method to get basic page information.
array | $titles | Page titles to retrieve info. |
array | $inprop | Which additional properties to get. |
array | $intoken | Request a token to perform a data-modifying action on a page |
boolean | $incontinue | When more results are available, use this to continue. |
Références $path.
Method to get various properties defined in the page content.
array | $titles | Page titles to retrieve properties. |
boolean | $ppcontinue | When more results are available, use this to continue. |
string | $ppprop | Page prop to look on the page for. |
Références $path.
getPageTemplates | ( | array | $titles, |
array | $tlnamespace = null , |
||
$tllimit = null , |
|||
$tlcontinue = null , |
|||
$tltemplates = null , |
|||
$tldir = null |
|||
) |
Method to get all page templates from the given page.
array | $titles | Page titles to retrieve templates. |
array | $tlnamespace | Show templates in this namespace(s) only. |
integer | $tllimit | How many templates to return. |
boolean | $tlcontinue | When more results are available, use this to continue. |
string | $tltemplates | Only list these templates. |
string | $tldir | The direction in which to list. |
Références $path.
Method to get a list of revisions.
array | $titles | Page titles to retrieve revisions. |
array | $rvprop | Which properties to get for each revision. |
boolean | $rvparse | Parse revision content. |
int | $rvlimit | Limit how many revisions will be returned. |
Références $path.
getToken | ( | $user, | |
$intoken | |||
) |
movePageById | ( | $fromid, | |
$to, | |||
$reason = null , |
|||
$movetalk = null , |
|||
$movesubpages = null , |
|||
$noredirect = null , |
|||
$watchlist = null , |
|||
$ignorewarnings = null |
|||
) |
Method to move a page.
int | $fromid | Page ID of the page you want to move. |
string | $to | Title you want to rename the page to. |
string | $reason | Reason for the move (optional). |
string | $movetalk | Move the talk page, if it exists. |
string | $movesubpages | Move subpages, if applicable. |
boolean | $noredirect | Don't create a redirect. |
string | $watchlist | Unconditionally add or remove the page from your watchlist. |
boolean | $ignorewarnings | Ignore any warnings. |
movePageByName | ( | $from, | |
$to, | |||
$reason = null , |
|||
$movetalk = null , |
|||
$movesubpages = null , |
|||
$noredirect = null , |
|||
$watchlist = null , |
|||
$ignorewarnings = null |
|||
) |
Method to move a page.
string | $from | Title of the page you want to move. |
string | $to | Title you want to rename the page to. |
string | $reason | Reason for the move (optional). |
string | $movetalk | Move the talk page, if it exists. |
string | $movesubpages | Move subpages, if applicable. |
boolean | $noredirect | Don't create a redirect. |
string | $watchlist | Unconditionally add or remove the page from your watchlist. |
boolean | $ignorewarnings | Ignore any warnings. |
Method to undo the last edit to the page.
string | $title | Title of the page you want to rollback. |
string | $user | Name of the user whose edits are to be rolled back. |
string | $summary | Custom edit summary. If not set, default summary will be used. |
string | $markbot | Mark the reverted edits and the revert as bot edits. |
string | $watchlist | Unconditionally add or remove the page from your watchlist. |
Method to restore certain revisions of a deleted page.
string | $title | Title of the page you want to restore. |
string | $reason | Reason for restoring (optional). |
string | $timestamp | Timestamps of the revisions to restore. |
string | $watchlist | Unconditionally add or remove the page from your watchlist. |