MediaWiki  master
TitlePrefixSearch.php
Go to the documentation of this file.
1 <?php
29 
30  protected function titles( array $titles ) {
31  return $titles;
32  }
33 
34  protected function strings( array $strings ) {
35  $titles = array_map( 'Title::newFromText', $strings );
36  $lb = new LinkBatch( $titles );
37  $lb->setCaller( __METHOD__ );
38  $lb->execute();
39  return $titles;
40  }
41 }
strings(array $strings)
Class representing a list of titles The execute() method checks them all for existence and adds them ...
Definition: LinkBatch.php:34
titles(array $titles)
Performs prefix search, returning Title objects.
Handles searching prefixes of titles and finding any page names that match.