MediaWiki REL1_37
|
Handles searching prefixes of user names. More...
Public Member Functions | |
__construct (ILoadBalancer $loadBalancer, UserFactory $userFactory, 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. | |
Private Attributes | |
ILoadBalancer | $loadBalancer |
UserFactory | $userFactory |
UserNameUtils | $userNameUtils |
Handles searching prefixes of user names.
Definition at line 39 of file UserNamePrefixSearch.php.
MediaWiki\User\UserNamePrefixSearch::__construct | ( | ILoadBalancer | $loadBalancer, |
UserFactory | $userFactory, | ||
UserNameUtils | $userNameUtils | ||
) |
ILoadBalancer | $loadBalancer | |
UserFactory | $userFactory | |
UserNameUtils | $userNameUtils |
Definition at line 58 of file UserNamePrefixSearch.php.
References MediaWiki\User\UserNamePrefixSearch\$loadBalancer, MediaWiki\User\UserNamePrefixSearch\$userFactory, and MediaWiki\User\UserNamePrefixSearch\$userNameUtils.
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 | UserIdentity | Authority | $audience | Either AUDIENCE_PUBLIC or a user to show the search for, providing a UserIdentity is deprecated since 1.37 |
string | $search | |
int | $limit | |
int | $offset | How many results to offset from the beginning |
InvalidArgumentException | if $audience is invalid |
Definition at line 79 of file UserNamePrefixSearch.php.
References wfDeprecated().
|
private |
Definition at line 45 of file UserNamePrefixSearch.php.
Referenced by MediaWiki\User\UserNamePrefixSearch\__construct().
|
private |
Definition at line 48 of file UserNamePrefixSearch.php.
Referenced by MediaWiki\User\UserNamePrefixSearch\__construct().
|
private |
Definition at line 51 of file UserNamePrefixSearch.php.
Referenced by MediaWiki\User\UserNamePrefixSearch\__construct().