/**
* Special handling for category description pages, showing pages,
* subcategories and file that belong to the category
+ *
+ * @property WikiCategoryPage $mPage Set by overwritten newPage() in this class
*/
class CategoryPage extends Article {
# Subclasses can change this to override the viewer class.
- public $mCategoryViewerClass = 'CategoryViewer';
-
- /**
- * @var WikiCategoryPage
- */
- protected $mPage;
+ protected $mCategoryViewerClass = CategoryViewer::class;
/**
* @param Title $title
$out->addHTML( $viewer->getHTML() );
$this->addHelpLink( 'Help:Categories' );
}
+
+ function getCategoryViewerClass() {
+ return $this->mCategoryViewerClass;
+ }
+
+ function setCategoryViewerClass( $class ) {
+ $this->mCategoryViewerClass = $class;
+ }
}