|
MediaWiki master
|
Handles searching prefixes of user names. More...
Public Member Functions | |
| __construct (private readonly IConnectionProvider $dbProvider, private readonly UserNameUtils $userNameUtils, private readonly HideUserUtils $hideUserUtils) | |
| search ( $audience, string $search, int $limit, int $offset=0) | |
| Do a prefix search of usernames and return a list of matching usernames. | |
Public Attributes | |
| const | AUDIENCE_PUBLIC = 'public' |
Handles searching prefixes of user names.
Definition at line 23 of file UserNamePrefixSearch.php.
| MediaWiki\User\UserNamePrefixSearch::__construct | ( | private readonly IConnectionProvider | $dbProvider, |
| private readonly UserNameUtils | $userNameUtils, | ||
| private readonly HideUserUtils | $hideUserUtils ) |
Definition at line 27 of file UserNamePrefixSearch.php.
| MediaWiki\User\UserNamePrefixSearch::search | ( | $audience, | |
| string | $search, | ||
| int | $limit, | ||
| int | $offset = 0 ) |
Do a prefix search of usernames and return a list of matching usernames.
| 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 45 of file UserNamePrefixSearch.php.
| const MediaWiki\User\UserNamePrefixSearch::AUDIENCE_PUBLIC = 'public' |
Definition at line 25 of file UserNamePrefixSearch.php.
Referenced by MediaWiki\Specials\SpecialListFiles\prefixSearchSubpages(), and MediaWiki\Specials\SpecialUnblock\prefixSearchSubpages().