48 $diff = $request->getVal(
'diff' );
55 if ( !$this->getHookRunner()->onCategoryPageView( $this ) ) {
70 # Use adaptive TTLs for CDN so delayed/failed purges are noticed less often
71 $outputPage = $this->
getContext()->getOutput();
72 $outputPage->adaptCdnTTL(
85 $oldFrom = $request->getVal(
'from' );
86 $oldUntil = $request->getVal(
'until' );
88 $reqArray = $request->getQueryValues();
91 foreach ( [
'page',
'subcat',
'file' ] as $type ) {
92 $from[$type] = $request->getVal(
"{$type}from", $oldFrom );
93 $until[$type] = $request->getVal(
"{$type}until", $oldUntil );
96 if ( !isset( $reqArray[
"{$type}from"] ) && isset( $reqArray[
"from"] ) ) {
97 $reqArray[
"{$type}from"] = $reqArray[
"from"];
99 if ( !isset( $reqArray[
"{$type}to"] ) && isset( $reqArray[
"to"] ) ) {
100 $reqArray[
"{$type}to"] = $reqArray[
"to"];
104 unset( $reqArray[
"from"] );
105 unset( $reqArray[
"to"] );
107 $viewer =
new $this->mCategoryViewerClass(
115 $out->addHTML( $viewer->getHTML() );
121class_alias( CategoryPage::class,
'CategoryPage' );
Legacy class representing an editable page and handling UI for some page actions.
getPage()
Get the WikiPage object of this instance.
getTitle()
Get the title object of the article.
getContext()
Gets the context this Article is executed in.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Special handling for category description pages.
view()
This is the default action of the index.php entry point: just view the page of the given title.
string $mCategoryViewerClass
Subclasses can change this to override the viewer class.
Special handling for representing category pages.