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