MediaWiki REL1_33
SpecialListusers.php
Go to the documentation of this file.
1<?php
32
33 public function __construct() {
34 parent::__construct( 'Listusers' );
35 }
36
40 public function execute( $par ) {
41 $this->setHeaders();
42 $this->outputHeader();
43
44 $up = new UsersPager( $this->getContext(), $par, $this->including() );
45
46 # getBody() first to check, if empty
47 $usersbody = $up->getBody();
48
49 $s = '';
50 if ( !$this->including() ) {
51 $s = $up->getPageHeader();
52 }
53
54 if ( $usersbody ) {
55 $s .= $up->getNavigationBar();
56 $s .= Html::rawElement( 'ul', [], $usersbody );
57 $s .= $up->getNavigationBar();
58 } else {
59 $s .= $this->msg( 'listusers-noresult' )->parseAsBlock();
60 }
61
62 $this->getOutput()->addHTML( $s );
63 }
64
70 public function getSubpagesForPrefixSearch() {
71 return User::getAllGroups();
72 }
73
74 protected function getGroupName() {
75 return 'users';
76 }
77}
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.
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:5131
This class is used to get a list of user.