MediaWiki REL1_39
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
Since
1.27

Definition at line 37 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
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 50 of file UserNamePrefixSearch_deprecated.php.


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