Manual:Category.php

1.39:

Constructor

edit

To 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 )