JMediawikiCategories
Extends \JMediawikiObjectMediaWiki API Categories class for the Joomla Platform.
since |
3.1.4 |
---|---|
package |
Joomla.Platform |
Methods
__construct
Constructor.
__construct(\Joomla\Registry\Registry $options = null, \JMediawikiHttp $client = null)
since |
3.1.4 |
---|
Arguments
- $options
\Joomla\Registry\Registry
Mediawiki options object.- $client
\JMediawikiHttp
The HTTP client object.
buildParameter
Method to build request parameters from a string array.
buildParameter(array $params) : string
since |
3.1.4 |
---|
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, integer $acmin = null, integer $acmax = null, integer $aclimit = null, array $acprop = null) : object
since |
3.1.4 |
---|
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
integer
Minimum number of category members.- $acmax
integer
Maximum number of category members.- $aclimit
integer
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 |
3.1.4 |
---|
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, integer $cllimit = null, boolean $clcontinue = false, array $clcategories = null, string $cldir = null) : object
since |
3.0.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
integer
Number of categories to return.- $clcontinue
boolean
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, boolean $clcontinue = false) : object
since |
3.1.4 |
---|
Arguments
- $titles
array
Page titles to retrieve categories.- $clcontinue
boolean
Continue when more results are available.
Response
object
getCategoriesUsed
Method to get information about all categories used.
getCategoriesUsed(array $titles) : object
since |
3.1.4 |
---|
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 |
3.2.2 |
---|---|
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 |
3.1.4 |
---|
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(\JHttpresponse $response) : Object
since |
3.1.4 |
---|---|
throws |
|
Arguments
- $response
\JHttpresponse
reponse from the mediawiki server
Response
Object
Properties
client
The HTTP client object to use in sending HTTP requests.