MediaWiki REL1_32
SpecialListusers.php
Go to the documentation of this file.
1<?php
32
33 public function __construct() {
34 parent::__construct( 'Listusers' );
35 }
36
42 public function execute( $par ) {
43 $this->setHeaders();
44 $this->outputHeader();
45
46 $up = new UsersPager( $this->getContext(), $par, $this->including() );
47
48 # getBody() first to check, if empty
49 $usersbody = $up->getBody();
50
51 $s = '';
52 if ( !$this->including() ) {
53 $s = $up->getPageHeader();
54 }
55
56 if ( $usersbody ) {
57 $s .= $up->getNavigationBar();
58 $s .= Html::rawElement( 'ul', [], $usersbody );
59 $s .= $up->getNavigationBar();
60 } else {
61 $s .= $this->msg( 'listusers-noresult' )->parseAsBlock();
62 }
63
64 $this->getOutput()->addHTML( $s );
65 }
66
72 public function getSubpagesForPrefixSearch() {
73 return User::getAllGroups();
74 }
75
76 protected function getGroupName() {
77 return 'users';
78 }
79}
80
87 function __construct() {
88 parent::__construct( 'Listadmins', 'Listusers', 'sysop' );
89 }
90}
91
98 function __construct() {
99 parent::__construct( 'Listbots', 'Listusers', 'bot' );
100 }
101}
within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this without any additional terms or conditions Notwithstanding the nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions Trademarks This License does not grant permission to use the trade service or product names of the except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file Disclaimer of Warranty Unless required by applicable law or agreed to in Licensor provides the WITHOUT WARRANTIES OR CONDITIONS OF ANY either express or including
Shortcut to construct an includable special page.
Redirect page: Special:ListAdmins --> Special:ListUsers/sysop.
Redirect page: Special:ListBots --> Special:ListUsers/bot.
execute( $par)
Show the special page.
getSubpagesForPrefixSearch()
Return an array of subpages that this special page will accept.
getGroupName()
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-gro...
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.
getContext()
Gets the context this SpecialPage is executed in.
msg( $key)
Wrapper around wfMessage that sets the current context.
static getAllGroups()
Return the set of defined explicit groups.
Definition User.php:5107
This class is used to get a list of user.