MediaWiki REL1_35
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}
Class representing a list of titles The execute() method checks them all for existence and adds them ...
Definition LinkBatch.php:35
Handles searching prefixes of titles and finding any page names that match.
Performs prefix search, returning Title objects.
titles(array $titles)
When implemented in a descendant class, receives an array of Title objects and returns either an unmo...
strings(array $strings)
When implemented in a descendant class, receives an array of titles as strings and returns either an ...