MediaWiki  master
UserNamePrefixSearch_deprecated.php
Go to the documentation of this file.
1 <?php
25 
26 // phpcs:disable MediaWiki.Files.ClassMatchesFilename.NotMatch
39 
51  public static function search( $audience, $search, $limit, $offset = 0 ) {
52  return MediaWikiServices::getInstance()
53  ->getUserNamePrefixSearch()
54  ->search( $audience, (string)$search, (int)$limit, (int)$offset );
55  }
56 }
Service locator for MediaWiki core services.
internal since 1.36
Definition: User.php:98
Handles searching prefixes of user names.
static search( $audience, $search, $limit, $offset=0)
Do a prefix search of user names and return a list of matching user names.