JMediawikiCategories::getCategoryMembers
Method to get information about the pages within a category
Signature
public function 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]]]]]]]]]]]]]]] )
Parameters
-
$cmtitle
- The category title, must contain 'Category:' prefix, cannot be used together with $cmpageid
-
$cmpageid
- The category's page ID, cannot be used together with $cmtitle
-
$cmlimit
- Maximum number of pages to retrieve
-
$cmprop
- Array of properties to retrieve
-
$cmnamespace
- Namespaces to retrieve pages from
-
$cmtype
- Array of category members to include, ignored if $cmsort is set to 'timestamp'
-
$cmstart
- Timestamp to start listing from, only used if $cmsort is set to 'timestamp'
-
$cmend
- Timestamp to end listing at, only used if $cmsort is set to 'timestamp'
-
$cmstartsortkey
- Hexadecimal key to start listing from, only used if $cmsort is set to 'sortkey'
-
$cmendsortkey
- Hexadecimal key to end listing at, only used if $cmsort is set to 'sortkey'
-
$cmstartsortkeyprefix
- Hexadecimal key prefix to start listing from, only used if $cmsort is set to 'sortkey',
-
$cmendsortkeyprefix
- Hexadecimal key prefix to end listing before, only used if $cmsort is set to 'sortkey',
-
$cmsort
- Property to sort by
-
$cmdir
- Direction to sort in
-
$cmcontinue
- Used to continue a previous request
Returns
Errors/Exceptions
-
RuntimeException