Categories
Extends AbstractMediawikiObjectMediaWiki API Categories class.
since |
1.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Constructor.
__construct(\Joomla\Registry\Registry options = null, \Joomla\Mediawiki\Http client = null) : mixed
since |
1.0 |
---|
Arguments
- options
\Joomla\Registry\Registry
Mediawiki options object.- client
\Joomla\Mediawiki\Http
The HTTP client object.
Response
mixed
buildParameter
Method to build request parameters from a string array.
buildParameter(array params) : string
since |
1.0 |
---|
Arguments
- params
array
string array that contains the parameters
Response
string
request parameter
enumerateCategories
Method to enumerate all categories.
enumerateCategories(string acfrom = null, string acto = null, string acprefix = null, string acdir = null, int acmin = null, int acmax = null, int aclimit = null, array acprop = null) : object
since |
1.0 |
---|
Arguments
- acfrom
string
The category to start enumerating from.- acto
string
The category to stop enumerating at.- acprefix
string
Search for all category titles that begin with this value.- acdir
string
Direction to sort in.- acmin
int
Minimum number of category members.- acmax
int
Maximum number of category members.- aclimit
int
How many categories to return.- acprop
array
Which properties to get.
Response
object
fetchUrl
Method to build and return a full request URL for the request.
fetchUrl(string path) : string
since |
1.0 |
---|
Arguments
- path
string
URL to inflect
Response
string
The request URL.
getCategories
Method to list all categories the page(s) belong to.
getCategories(array titles, array clprop = null, array clshow = null, int cllimit = null, bool clcontinue = false, array clcategories = null, string cldir = null) : object
since |
1.0 |
---|
Arguments
- titles
array
Page titles to retrieve categories.- clprop
array
List of additional properties to get.- clshow
array
Type of categories to show.- cllimit
int
Number of categories to return.- clcontinue
bool
Continue when more results are available.- clcategories
array
Only list these categories.- cldir
string
Direction of listing.
Response
object
getCategoriesInfo
Method to get information about the given categories.
getCategoriesInfo(array titles, bool clcontinue = false) : object
since |
1.0 |
---|
Arguments
- titles
array
Page titles to retrieve categories.- clcontinue
bool
Continue when more results are available.
Response
object
getCategoriesUsed
Method to get information about all categories used.
getCategoriesUsed(array titles) : object
since |
1.0 |
---|
Arguments
- titles
array
Page titles to retrieve categories.
Response
object
getCategoryMembers
Method to get information about the pages within a category
getCategoryMembers(string cmtitle = null, string cmpageid = null, string cmlimit = null, array cmprop = null, array cmnamespace = null, array cmtype = null, string cmstart = null, string cmend = null, string cmstartsortkey = null, string cmendsortkey = null, string cmstartsortkeyprefix = null, string cmendsortkeyprefix = null, string cmsort = null, string cmdir = null, string cmcontinue = null) : object
since |
1.0 |
---|---|
throws |
|
Arguments
- cmtitle
string
The category title, must contain 'Category:' prefix, cannot be used together with $cmpageid- cmpageid
string
The category's page ID, cannot be used together with $cmtitle- cmlimit
string
Maximum number of pages to retrieve- cmprop
array
Array of properties to retrieve- cmnamespace
array
Namespaces to retrieve pages from- cmtype
array
Array of category members to include, ignored if $cmsort is set to 'timestamp'- cmstart
string
Timestamp to start listing from, only used if $cmsort is set to 'timestamp'- cmend
string
Timestamp to end listing at, only used if $cmsort is set to 'timestamp'- cmstartsortkey
string
Hexadecimal key to start listing from, only used if $cmsort is set to 'sortkey'- cmendsortkey
string
Hexadecimal key to end listing at, only used if $cmsort is set to 'sortkey'- cmstartsortkeyprefix
string
Hexadecimal key prefix to start listing from, only used if $cmsort is set to 'sortkey', overrides $cmstartsortkey- cmendsortkeyprefix
string
Hexadecimal key prefix to end listing before, only used if $cmsort is set to 'sortkey', overrides $cmendsortkey- cmsort
string
Property to sort by- cmdir
string
Direction to sort in- cmcontinue
string
Used to continue a previous request
Response
object
getChangeTags
Method to list change tags.
getChangeTags(array tgprop = null, string tglimit = null) : object
since |
1.0 |
---|
Arguments
- tgprop
array
List of properties to get.- tglimit
string
The maximum number of tags to limit.
Response
object
validateResponse
Method to validate response for errors
validateResponse(\Joomla\Http\Response response) : \SimpleXMLElement
since |
1.0 |
---|---|
throws |
|
Arguments
- response
\Joomla\Http\Response
The response from the mediawiki server.
Response
\SimpleXMLElement
Properties
options
Options for the Mediawiki object.
since |
1.0 |
---|
Type(s)
\Joomla\Registry\Registry
client
The HTTP client object to use in sending HTTP requests.
since |
1.0 |
---|
Type(s)
\Joomla\Mediawiki\Http