41 public static function search( $audience, $search, $limit, $offset = 0 ) {
45 $prefix = $user ? $user->getName() :
'';
47 $cond = [
'user_name ' .
$dbr->buildLike( $prefix,
$dbr->anyString() ) ];
51 if ( $audience ===
'public' || !MediaWikiServices::getInstance()
52 ->getPermissionManager()
53 ->userHasRight( $audience,
'hideuser' )
55 $tables[] =
'ipblocks';
56 $cond[
'ipb_deleted'] = [ 0, null ];
57 $joinConds[
'ipblocks'] = [
'LEFT JOIN',
'user_id=ipb_user' ];
67 'ORDER BY' =>
'user_name',