3 # This class is used to get a list of user. The ones with specials
4 # rights (sysop, bureaucrat, developer) will have them displayed
7 require_once("QueryPage.php");
9 class ListUsersPage
extends QueryPage
{
17 $usertable = $wgIsPg?
'"user"':'user';
18 $userspace = Namespace::getUser();
19 return "SELECT user_rights as type, $userspace as namespace, user_name as title, user_name as value FROM $usertable";
22 function sortDescending() {
26 function formatResult( $skin, $result ) {
28 $name = $skin->makeKnownLink( $wgLang->getNsText($result->namespace) . ':' . $result->title
, $result->title
);
29 if( '' != $result->type
) {
31 $skin->makeKnownLink( wfMsg( "administrators" ), $result->type
) .
38 function wfSpecialListusers() {
39 global $wgUser, $wgOut, $wgLang, $wgIsPg;
41 list( $limit, $offset ) = wfCheckLimits();
43 $slu = new ListUsersPage();
45 return $slu->doQuery( $offset, $limit );