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
{
16 $usertable = wfTableName( 'user', DB_READ
);
17 $userspace = Namespace::getUser();
18 return "SELECT user_rights as type, $userspace as namespace, user_name as title, user_name as value FROM $usertable";
21 function sortDescending() {
25 function formatResult( $skin, $result ) {
27 $name = $skin->makeKnownLink( $wgLang->getNsText($result->namespace) . ':' . $result->title
, $result->title
);
28 if( '' != $result->type
) {
30 $skin->makeKnownLink( wfMsg( "administrators" ), $result->type
) .
37 function wfSpecialListusers() {
38 global $wgUser, $wgOut, $wgLang;
40 list( $limit, $offset ) = wfCheckLimits();
42 $slu = new ListUsersPage();
44 return $slu->doQuery( $offset, $limit );