MediaWiki  1.30.2
StringPrefixSearch Class Reference

Performs prefix search, returning strings. More...

Inheritance diagram for StringPrefixSearch:
Collaboration diagram for StringPrefixSearch:

Protected Member Functions

 strings (array $strings)
 When implemented in a descendant class, receives an array of titles as strings and returns either an unmodified array or an array of Title objects corresponding to strings received. More...
 
 titles (array $titles)
 When implemented in a descendant class, receives an array of Title objects and returns either an unmodified array or an array of strings corresponding to titles passed to it. More...
 
- Protected Member Functions inherited from PrefixSearch
 extractNamespace ( $input)
 Figure out if given input contains an explicit namespace. More...
 
 searchBackend ( $namespaces, $search, $limit, $offset)
 Do a prefix search of titles and return a list of matching page names. More...
 
 specialSearch ( $search, $limit, $offset)
 Prefix search special-case for Special: namespace. More...
 
 validateNamespaces ( $namespaces)
 Validate an array of numerical namespace indexes. More...
 

Additional Inherited Members

- Public Member Functions inherited from PrefixSearch
 defaultSearchBackend ( $namespaces, $search, $limit, $offset)
 Unless overridden by PrefixSearchBackend hook... More...
 
 search ( $search, $limit, $namespaces=[], $offset=0)
 Do a prefix search of titles and return a list of matching page names. More...
 
 searchWithVariants ( $search, $limit, array $namespaces, $offset=0)
 Do a prefix search for all possible variants of the prefix. More...
 
- Static Public Member Functions inherited from PrefixSearch
static titleSearch ( $search, $limit, $namespaces=[], $offset=0)
 Do a prefix search of titles and return a list of matching page names. More...
 

Detailed Description

Performs prefix search, returning strings.

Deprecated:
Since 1.27, Use SearchEngine::prefixSearchSubpages or SearchEngine::completionSearch

Definition at line 395 of file PrefixSearch.php.

Member Function Documentation

◆ strings()

StringPrefixSearch::strings ( array  $strings)
protected

When implemented in a descendant class, receives an array of titles as strings and returns either an unmodified array or an array of Title objects corresponding to strings received.

Parameters
array$strings
Returns
array

Reimplemented from PrefixSearch.

Definition at line 403 of file PrefixSearch.php.

◆ titles()

StringPrefixSearch::titles ( array  $titles)
protected

When implemented in a descendant class, receives an array of Title objects and returns either an unmodified array or an array of strings corresponding to titles passed to it.

Parameters
array$titles
Returns
array

Reimplemented from PrefixSearch.

Definition at line 397 of file PrefixSearch.php.

References $t, and $titles.


The documentation for this class was generated from the following file: