MediaWiki REL1_34
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}
Handles searching prefixes of titles and finding any page names that match.
Performs prefix search, returning strings.
strings(array $strings)
When implemented in a descendant class, receives an array of titles as strings and returns either an ...
titles(array $titles)
When implemented in a descendant class, receives an array of Title objects and returns either an unmo...
Represents a title within MediaWiki.
Definition Title.php:42