MediaWiki  master
StringPrefixSearch.php
Go to the documentation of this file.
1 <?php
29 
34  protected function titles( array $titles ) {
35  return array_map( static function ( Title $t ) {
36  return $t->getPrefixedText();
37  }, $titles );
38  }
39 
44  protected function strings( array $strings ) {
45  return $strings;
46  }
47 }
StringPrefixSearch\titles
titles(array $titles)
Definition: StringPrefixSearch.php:34
StringPrefixSearch\strings
strings(array $strings)
Definition: StringPrefixSearch.php:44
Title
Represents a title within MediaWiki.
Definition: Title.php:48
PrefixSearch
Handles searching prefixes of titles and finding any page names that match.
Definition: PrefixSearch.php:33
$t
$t
Definition: testCompression.php:74
StringPrefixSearch
Performs prefix search, returning strings.
Definition: StringPrefixSearch.php:28