JMediawikiPages
class JMediawikiPages extends JMediawikiObject
MediaWiki API Pages class for the Joomla Platform.
Methods
Method to build request parameters from a string array.
Method to validate response for errors
Method to edit a page.
Method to delete a page.
Method to delete a page.
Method to restore certain revisions of a deleted page.
Method to move a page.
Method to move a page.
Method to undo the last edit to the page.
Method to change the protection level of a page.
Method to get basic page information.
Method to get various properties defined in the page content.
Method to get a list of revisions.
Method to get all page templates from the given page.
Method to get all pages that link to the given page.
Method to get all pages that link to the given interwiki link.
Method to get access token.
Details
object
editPage(
string $title,
int $section = null,
string $sectiontitle = null,
string $text = null,
string $summary = null)
Method to edit a page.
object
deletePageByName(
string $title,
string $reason = null,
string $watchlist = null,
string $oldimage = null)
Method to delete a page.
object
deletePageById(
string $pageid,
string $reason = null,
string $watchlist = null,
string $oldimage = null)
Method to delete a page.
object
undeletePage(
string $title,
string $reason = null,
string $timestamp = null,
string $watchlist = null)
Method to restore certain revisions of a deleted page.
object
movePageByName(
string $from,
string $to,
string $reason = null,
string $movetalk = null,
string $movesubpages = null,
boolean $noredirect = null,
string $watchlist = null,
boolean $ignorewarnings = null)
Method to move a page.
object
movePageById(
int $fromid,
string $to,
string $reason = null,
string $movetalk = null,
string $movesubpages = null,
boolean $noredirect = null,
string $watchlist = null,
boolean $ignorewarnings = null)
Method to move a page.
object
rollback(
string $title,
string $user,
string $summary = null,
string $markbot = null,
string $watchlist = null)
Method to undo the last edit to the page.
object
changeProtection(
string $title,
string $protections,
string $expiry = null,
string $reason = null,
string $cascade = null,
string $watchlist = null)
Method to change the protection level of a page.
object
getPageInfo(
array $titles,
array $inprop = null,
array $intoken = null,
boolean $incontinue = null)
Method to get basic page information.
object
getPageProperties(
array $titles,
boolean $ppcontinue = null,
string $ppprop = null)
Method to get various properties defined in the page content.
object
getRevisions(
array $titles,
array $rvprop = null,
boolean $rvparse = null,
int $rvlimit = null)
Method to get a list of revisions.
object
getPageTemplates(
array $titles,
array $tlnamespace = null,
integer $tllimit = null,
boolean $tlcontinue = null,
string $tltemplates = null,
string $tldir = null)
Method to get all page templates from the given page.
object
getBackLinks(
string $bltitle,
integer $blpageid = null,
boolean $blcontinue = null,
array $blnamespace = null,
string $blfilterredirect = null,
integer $bllimit = null,
boolean $blredirect = null)
Method to get all pages that link to the given page.