Source for file sites.php
Documentation is available at sites.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 Sites class for the Joomla Platform.
* @package Joomla.Platform
* Method to get site information.
* @param array $siprop The sysinfo properties to get.
* @param string $sifilteriw Only local or only non local entries to return.
* @param boolean $sishowalldb List all database servers.
* @param boolean $sinumberingroup List the number of users in usergroups.
* @param array $siinlanguagecode Language code for localized languages.
public function getSiteInfo(array $siprop =
null, $sifilteriw =
null, $sishowalldb =
false, $sinumberingroup =
false, array $siinlanguagecode =
null)
$path =
'?action=query&meta=siteinfo';
$path .=
'&sifilteriw=' .
$sifilteriw;
$path .=
'&sishowalldb=';
$path .=
'&sinumberingroup=';
if (isset
($siinlanguagecode))
$path .=
'&siinlanguagecode=' .
$this->buildParameter($siinlanguagecode);
* Method to get events from logs.
* @param array $leprop List of properties to get.
* @param string $letype Filter log actions to only this type.
* @param string $leaction Filter log actions to only this type.
* @param string $letitle Filter entries to those related to a page.
* @param string $leprefix Filter entries that start with this prefix.
* @param string $letag Filter entries with tag.
* @param string $leuser Filter entries made by the given user.
* @param string $lestart Starting timestamp.
* @param string $leend Ending timestamp.
* @param string $ledir Direction of enumeration.
* @param integer $lelimit Event limit to return.
public function getEvents(array $leprop =
null, $letype =
null, $leaction =
null, $letitle =
null, $leprefix =
null, $letag =
null,
$leuser =
null, $lestart =
null, $leend =
null, $ledir =
null, $lelimit =
null)
$path =
'?action=query&list=logevents';
$path .=
'&letype=' .
$letype;
$path .=
'&leaction=' .
$leaction;
$path .=
'&letitle=' .
$letitle;
$path .=
'&leprefix=' .
$leprefix;
$path .=
'&letag=' .
$letag;
$path .=
'&leuser=' .
$leuser;
$path .=
'&lestart=' .
$lestart;
$path .=
'&leend=' .
$leend;
$path .=
'&ledir=' .
$ledir;
$path .=
'&lelimit=' .
$lelimit;
* Method to get recent changes on a site.
* @param string $rcstart Starting timestamp.
* @param string $rcend Ending timestamp.
* @param string $rcdir Direction of enumeration.
* @param array $rcnamespace Filter changes to only this namespace(s).
* @param string $rcuser Filter changes by this user.
* @param string $rcexcludeuser Filter changes to exclude changes by this user.
* @param string $rctag Filter changes by this tag.
* @param array $rcprop Filter log actions to only this type.
* @param array $rctoken Which token to obtain for each change.
* @param array $rcshow Filter changes by this criteria.
* @param string $rclimit Changes limit to return.
* @param string $rctype Filter event by type of changes.
* @param string $rctoponly Filter changes which are latest revision.
public function getRecentChanges($rcstart =
null, $rcend =
null, $rcdir =
null, array $rcnamespace =
null, $rcuser =
null, $rcexcludeuser =
null,
$rctag =
null, array $rcprop =
null, array $rctoken =
null, array $rcshow =
null, $rclimit =
null, $rctype =
null, $rctoponly =
null)
$path =
'?action=query&list=recentchanges';
$path .=
'&rcstart=' .
$rcstart;
$path .=
'&rcend=' .
$rcend;
$path .=
'&rcdir=' .
$rcdir;
$path .=
'&rcuser=' .
$rcuser;
if (isset
($rcexcludeuser))
$path .=
'&rcexcludeuser=' .
$rcexcludeuser;
$path .=
'&rctag=' .
$rctag;
$path .=
'&rclimit=' .
$rclimit;
$path .=
'&rctype=' .
$rctype;
$path .=
'&rctoponly=' .
$rctoponly;
* Method to get protected titles on a site.
* @param array $ptnamespace Only list titles in this namespace.
* @param array $ptlevel Only list titles with these protection level.
* @param integer $ptlimit Limit of pages to return.
* @param string $ptdir Direction of enumeration.
* @param string $ptstart Starting timestamp.
* @param string $ptend Ending timestamp.
* @param array $ptprop List of properties to get.
public function getProtectedTitles(array $ptnamespace =
null, array $ptlevel =
null, $ptlimit =
null, $ptdir =
null, $ptstart =
null,
$ptend =
null, array $ptprop =
null)
$path =
'?action=query&list=protectedtitles';
$path .=
'&ptlimit=' .
$ptlimit;
$path .=
'&ptdir=' .
$ptdir;
$path .=
'&ptstart=' .
$ptstart;
$path .=
'&ptend=' .
$ptend;
Documentation generated on Tue, 19 Nov 2013 15:13:57 +0100 by phpDocumentor 1.4.3