64 parent::__construct(
'Listfiles' );
79 $userName = (string)$par;
83 $userName = $this->
getRequest()->getText(
'user', $par ??
'' );
84 $search = $this->
getRequest()->getText(
'ilsearch',
'' );
85 $showAll = $this->
getRequest()->getBool(
'ilshowall',
false );
88 $sanitizedUserName = $this->userNameUtils->getCanonical( $userName, UserNameUtils::RIGOR_NONE );
89 if ( $sanitizedUserName ) {
90 $userName = $sanitizedUserName;
94 $pageTitle = $this->
msg(
'listfiles_subpage', $userName );
96 $pageTitle = $this->
msg(
'listfiles' );
114 $out->setPageTitle( $pageTitle );
115 $out->addModuleStyles(
'mediawiki.special' );
117 $out->addParserOutputContent( $pager->getBodyOutput() );
119 $user = $pager->getRelevantUser();
121 $this->
getSkin()->setRelevantUser( $user );
124 $out->addParserOutputContent( $pager->getFullOutput() );
137 $search = $this->userNameUtils->getCanonical( $search );
143 return $this->userNamePrefixSearch
144 ->search( UserNamePrefixSearch::AUDIENCE_PUBLIC, $search, $limit, $offset );
Shortcut to construct an includable special page.
Prioritized list of file repositories.
UserNamePrefixSearch $userNamePrefixSearch
prefixSearchSubpages( $search, $limit, $offset)
Return an array of subpages beginning with $search that this special page will accept.
UserNameUtils $userNameUtils
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
execute( $par)
Default execute method Checks user permissions.
ILoadBalancer $loadBalancer
__construct(RepoGroup $repoGroup, ILoadBalancer $loadBalancer, CommentStore $commentStore, UserNameUtils $userNameUtils, UserNamePrefixSearch $userNamePrefixSearch, UserCache $userCache)
CommentStore $commentStore
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getOutput()
Get the OutputPage being used for this instance.
getSkin()
Shortcut to get the skin being used for this instance.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getRequest()
Get the WebRequest being used for this instance.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
including( $x=null)
Whether the special page is being evaluated via transclusion.