65 parent::__construct(
'Listfiles' );
66 $this->repoGroup = $repoGroup;
67 $this->dbProvider = $dbProvider;
68 $this->commentStore = $commentStore;
69 $this->userNameUtils = $userNameUtils;
70 $this->userNamePrefixSearch = $userNamePrefixSearch;
71 $this->userCache = $userCache;
72 $this->commentFormatter = $commentFormatter;
81 $userName = (string)$par;
85 $userName = $this->
getRequest()->getText(
'user', $par ??
'' );
86 $search = $this->
getRequest()->getText(
'ilsearch',
'' );
87 $showAll = $this->
getRequest()->getBool(
'ilshowall',
false );
90 $sanitizedUserName = $this->userNameUtils->getCanonical( $userName, UserRigorOptions::RIGOR_NONE );
91 if ( $sanitizedUserName ) {
92 $userName = $sanitizedUserName;
96 $pageTitle = $this->
msg(
'listfiles_subpage' )->plaintextParams( $userName );
98 $pageTitle = $this->
msg(
'listfiles' );
108 $this->userNameUtils,
109 $this->commentFormatter,
117 $out->setPageTitleMsg( $pageTitle );
118 $out->addModuleStyles(
'mediawiki.special' );
120 $out->addParserOutputContent( $pager->getBodyOutput() );
122 $user = $pager->getRelevantUser();
124 $this->
getSkin()->setRelevantUser( $user );
127 $out->addParserOutputContent( $pager->getFullOutput() );
140 $search = $this->userNameUtils->getCanonical( $search );
146 return $this->userNamePrefixSearch
147 ->search( UserNamePrefixSearch::AUDIENCE_PUBLIC, $search, $limit, $offset );
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 Per default the message key is the canonical name o...
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Prioritized list of file repositories.