MediaWiki  1.34.4
StringPrefixSearch.php
Go to the documentation of this file.
1 <?php
29 
30  protected function titles( array $titles ) {
31  return array_map( function ( Title $t ) {
32  return $t->getPrefixedText();
33  }, $titles );
34  }
35 
36  protected function strings( array $strings ) {
37  return $strings;
38  }
39 }
StringPrefixSearch\titles
titles(array $titles)
When implemented in a descendant class, receives an array of Title objects and returns either an unmo...
Definition: StringPrefixSearch.php:30
$t
$t
Definition: make-normalization-table.php:143
StringPrefixSearch\strings
strings(array $strings)
When implemented in a descendant class, receives an array of titles as strings and returns either an ...
Definition: StringPrefixSearch.php:36
Title
Represents a title within MediaWiki.
Definition: Title.php:42
PrefixSearch
Handles searching prefixes of titles and finding any page names that match.
Definition: PrefixSearch.php:32
StringPrefixSearch
Performs prefix search, returning strings.
Definition: StringPrefixSearch.php:28