43 $diff = $request->getVal(
'diff' );
44 $diffOnly = $request->getBool(
'diffonly',
47 if ( $diff !==
null && $diffOnly ) {
52 if ( !$this->getHookRunner()->onCategoryPageView( $this ) ) {
67 # Use adaptive TTLs for CDN so delayed/failed purges are noticed less often
68 $outputPage = $this->
getContext()->getOutput();
69 $outputPage->adaptCdnTTL(
71 IExpiringStore::TTL_MINUTE
82 $oldFrom = $request->getVal(
'from' );
83 $oldUntil = $request->getVal(
'until' );
85 $reqArray = $request->getValues();
88 foreach ( [
'page',
'subcat',
'file' ] as
$type ) {
89 $from[
$type] = $request->getVal(
"{$type}from", $oldFrom );
90 $until[
$type] = $request->getVal(
"{$type}until", $oldUntil );
93 if ( !isset( $reqArray[
"{$type}from"] ) && isset( $reqArray[
"from"] ) ) {
94 $reqArray[
"{$type}from"] = $reqArray[
"from"];
96 if ( !isset( $reqArray[
"{$type}to"] ) && isset( $reqArray[
"to"] ) ) {
97 $reqArray[
"{$type}to"] = $reqArray[
"to"];
101 unset( $reqArray[
"from"] );
102 unset( $reqArray[
"to"] );
104 $viewer =
new $this->mCategoryViewerClass(
112 $out->addHTML( $viewer->getHTML() );
129 $this->mCategoryViewerClass = $class;
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
Legacy class representing an editable page and handling UI for some page actions.
getContext()
Gets the context this Article is executed in.
getTitle()
Get the title object of the article.
getPage()
Get the WikiPage object of this instance.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Special handling for category description pages.
string $mCategoryViewerClass
Subclasses can change this to override the viewer class.
setCategoryViewerClass( $class)
view()
This is the default action of the index.php entry point: just view the page of the given title.
Represents a title within MediaWiki.
Special handling for representing category pages.