MediaWiki REL1_41
UserNamePrefixSearch Class Reference

Handles searching prefixes of user names. More...

Static Public Member Functions

static search ( $audience, $search, $limit, $offset=0)
 Do a prefix search of user names and return a list of matching user names.
 

Detailed Description

Handles searching prefixes of user names.

Note
There are two classes called UserNamePrefixSearch. You should use the first one, in namespace MediaWiki\User, which is a service. \UserNamePrefixSearch is a deprecated static wrapper that forwards to the global service.
Deprecated
since 1.36, use the MediaWiki\User\UserNamePrefixSearch service; hard deprecated since 1.41
Since
1.27

Definition at line 39 of file UserNamePrefixSearch_deprecated.php.

Member Function Documentation

◆ search()

static UserNamePrefixSearch::search ( $audience,
$search,
$limit,
$offset = 0 )
static

Do a prefix search of user names and return a list of matching user names.

Deprecated
since 1.36, use the MediaWiki\User\UserNamePrefixSearch service instead; hard deprecated since 1.41
Parameters
string | User$audienceThe string 'public' or a user object to show the search for
string$search
int$limit
int$offsetHow many results to offset from the beginning
Returns
string[]

Definition at line 53 of file UserNamePrefixSearch_deprecated.php.

References wfDeprecated().


The documentation for this class was generated from the following file: