getName() : ''; $tables = [ 'user' ]; $cond = [ 'user_name ' . $dbr->buildLike( $prefix, $dbr->anyString() ) ]; $joinConds = []; // Filter out hidden user names if ( $audience === 'public' || !$audience->isAllowed( 'hideuser' ) ) { $tables[] = 'ipblocks'; $cond['ipb_deleted'] = [ 0, null ]; $joinConds['ipblocks'] = [ 'LEFT JOIN', 'user_id=ipb_user' ]; } $res = $dbr->selectFieldValues( $tables, 'user_name', $cond, __METHOD__, [ 'LIMIT' => $limit, 'ORDER BY' => 'user_name', 'OFFSET' => $offset ], $joinConds ); return $res === false ? [] : $res; } }