Manual:Category.php
MediaWiki file: Category.php | |
---|---|
Location: | includes/Category/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Category\Category |
1.39:
MediaWiki file: Category.php | |
---|---|
Location: | includes/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Category\Category |
Constructor
editTo instantiate Category
, call one of the static factory methods:
Category::newFromID( int $id )
Category::newFromName( string $name )
Category::newFromRow( $row )
Category::newFromTitle( PageIdentity $page )
Public methods
edit$category->getFileCount()
$category->getID()
$category->getMemberCount()
- returns sum of subcategories, files and pages$category->getMembers( $limit: false, $offset: '' )
$category->getName()
- returns DB key name or false on failure$category->getPage()
- returns PageIdentity or null$category->getPageCount()
$category->getSubcatCount()
$category->getTitle()
- returns PageIdentity or false$category->refreshCounts()
$category->refreshCountsIfEmpty()
$category->refreshCountsIfSmall( $maxSize )