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 $dbr =& wfGetDB( DB_SLAVE
);
17 $usertable = $dbr->tableName( 'user' );
18 $userspace = Namespace::getUser();
19 return "SELECT user_rights as type, $userspace as namespace, user_name as title, " .
20 "user_name as value FROM $usertable";
23 function sortDescending() {
27 function formatResult( $skin, $result ) {
29 $name = $skin->makeLink( $wgLang->getNsText($result->namespace) . ':' . $result->title
, $result->title
);
30 if( '' != $result->type
) {
32 $skin->makeLink( wfMsg( "administrators" ), $result->type
) .
39 function wfSpecialListusers() {
40 global $wgUser, $wgOut, $wgLang;
42 list( $limit, $offset ) = wfCheckLimits();
44 $slu = new ListUsersPage();
46 return $slu->doQuery( $offset, $limit );