MediaWiki REL1_39
|
Handles searching prefixes of user names. More...
Public Member Functions | |
__construct (ILoadBalancer $loadBalancer, UserNameUtils $userNameUtils) | |
search ( $audience, string $search, int $limit, int $offset=0) | |
Do a prefix search of user names and return a list of matching user names. | |
Handles searching prefixes of user names.
Definition at line 39 of file UserNamePrefixSearch.php.
MediaWiki\User\UserNamePrefixSearch::__construct | ( | ILoadBalancer | $loadBalancer, |
UserNameUtils | $userNameUtils ) |
ILoadBalancer | $loadBalancer | |
UserNameUtils | $userNameUtils |
Definition at line 54 of file UserNamePrefixSearch.php.
MediaWiki\User\UserNamePrefixSearch::search | ( | $audience, | |
string | $search, | ||
int | $limit, | ||
int | $offset = 0 ) |
Do a prefix search of user names and return a list of matching user names.
string | Authority | $audience | Either AUDIENCE_PUBLIC or a user to show the search for |
string | $search | |
int | $limit | |
int | $offset | How many results to offset from the beginning |
InvalidArgumentException | if $audience is invalid |
Definition at line 73 of file UserNamePrefixSearch.php.