59 return trim( preg_replace(
"/[^{$lc}]/",
" ", $text ) );
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
Base search engine base class for database-backed searches.
__construct(IDatabase $db=null)
filter( $text)
Return a 'cleaned up' search string.
IDatabase $db
Slave database for reading from for results.
Contain a class for special pages.
static legalSearchChars( $type=self::CHARS_ALL)
Get chars legal for search NOTE: usage as static is deprecated and preserved only as BC measure.