MediaWiki REL1_39
StringPrefixSearch Class Reference

Performs prefix search, returning strings. More...

Inheritance diagram for StringPrefixSearch:
Collaboration diagram for StringPrefixSearch:

Protected Member Functions

 strings (array $strings)
 
 titles (array $titles)
 
- Protected Member Functions inherited from PrefixSearch
 searchBackend ( $namespaces, $search, $limit, $offset)
 Do a prefix search of titles and return a list of matching page names.
 
 specialSearch ( $search, $limit, $offset)
 Prefix search special-case for Special: namespace.
 
 validateNamespaces ( $namespaces)
 Validate an array of numerical namespace indexes.
 

Additional Inherited Members

- Public Member Functions inherited from PrefixSearch
 defaultSearchBackend ( $namespaces, $search, $limit, $offset)
 Unless overridden by PrefixSearchBackend hook... This is case-sensitive (First character may be automatically capitalized by Title::secureAndSpit() later on depending on $wgCapitalLinks)
 
 search ( $search, $limit, $namespaces=[], $offset=0)
 Do a prefix search of titles and return a list of matching page names.
 
 searchWithVariants ( $search, $limit, array $namespaces, $offset=0)
 Do a prefix search for all possible variants of the prefix.
 

Detailed Description

Performs prefix search, returning strings.

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

Definition at line 28 of file StringPrefixSearch.php.

Member Function Documentation

◆ strings()

StringPrefixSearch::strings ( array $strings)
protected
Parameters
string[]$strings
Returns
string[]

Reimplemented from PrefixSearch.

Definition at line 44 of file StringPrefixSearch.php.

◆ titles()

StringPrefixSearch::titles ( array $titles)
protected
Parameters
Title[]$titles
Returns
string[]

Reimplemented from PrefixSearch.

Definition at line 34 of file StringPrefixSearch.php.

References $t.


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