MediaWiki master
UserNamePrefixSearch_deprecated.php
Go to the documentation of this file.
1<?php
25
26// phpcs:disable MediaWiki.Files.ClassMatchesFilename.NotMatch
40
53 public static function search( $audience, $search, $limit, $offset = 0 ) {
54 wfDeprecated( __METHOD__, '1.36' );
55 return MediaWikiServices::getInstance()
56 ->getUserNamePrefixSearch()
57 ->search( $audience, (string)$search, (int)$limit, (int)$offset );
58 }
59}
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
Service locator for MediaWiki core services.
internal since 1.36
Definition User.php:93
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.