67 parent::__construct(
'Listfiles' );
68 $this->repoGroup = $repoGroup;
69 $this->dbProvider = $dbProvider;
70 $this->commentStore = $commentStore;
71 $this->userNameUtils = $userNameUtils;
72 $this->userNamePrefixSearch = $userNamePrefixSearch;
73 $this->commentFormatter = $commentFormatter;
74 $this->linkBatchFactory = $linkBatchFactory;
83 $userName = (string)$par;
87 $userName = $this->
getRequest()->getText(
'user', $par ??
'' );
88 $search = $this->
getRequest()->getText(
'ilsearch',
'' );
89 $showAll = $this->
getRequest()->getBool(
'ilshowall',
false );
92 $sanitizedUserName = $this->userNameUtils->getCanonical( $userName, UserRigorOptions::RIGOR_NONE );
93 if ( $sanitizedUserName !==
false ) {
94 $userName = $sanitizedUserName;
97 if ( $userName !==
'' ) {
98 $pageTitle = $this->
msg(
'listfiles_subpage' )->plaintextParams( $userName );
100 $pageTitle = $this->
msg(
'listfiles' );
109 $this->userNameUtils,
110 $this->commentFormatter,
111 $this->linkBatchFactory,
119 $out->setPageTitleMsg( $pageTitle );
120 $out->addModuleStyles(
'mediawiki.special' );
122 $out->addParserOutputContent( $pager->getBodyOutput() );
124 $user = $pager->getRelevantUser();
126 $this->
getSkin()->setRelevantUser( $user );
129 $out->addParserOutputContent( $pager->getFullOutput() );
142 $search = $this->userNameUtils->getCanonical( $search );
148 return $this->userNamePrefixSearch
158class_alias( SpecialListFiles::class,
'SpecialListFiles' );
Shortcut to construct an includable special page.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getSkin()
Shortcut to get the skin being used for this instance.
getContext()
Gets the context this SpecialPage is executed in.
getRequest()
Get the WebRequest being used for this instance.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
including( $x=null)
Whether the special page is being evaluated via transclusion.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages By default the message key is the canonical name of...
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Prioritized list of file repositories.