Public Member Functions | |
| __construct (&$request, &$user) | |
| Set up basic search parameters from the request and user settings. | |
| goResult ($term) | |
| If an exact title match can be found, jump straight ahead to it. | |
| showResults ($term, $extra= '') | |
| setupPage ($term) | |
| powerSearch (&$request) | |
| Extract "power search" namespace settings from the request object, returning a list of index numbers to search. | |
| powerSearchOptions () | |
| Reconstruct the 'power search' options for links. | |
| showMatches (&$matches) | |
| Show whole set of results. | |
| showHit ($result, $terms) | |
| Format a single hit result. | |
| showInterwiki (&$matches, $query) | |
| Show results from other wikis. | |
| showInterwikiHit ($result, $lastInterwiki, $terms, $query, $customCaptions) | |
| Show single interwiki link. | |
| powerSearchBox ($term) | |
| Generates the power search box at bottom of [[Special:Search]]. | |
| powerSearchFocus () | |
| shortDialog ($term) | |
Definition at line 845 of file SpecialSearch.php.
| SpecialSearchOld::__construct | ( | &$ | request, | |
| &$ | user | |||
| ) |
Set up basic search parameters from the request and user settings.
Typically you'll pass $wgRequest and $wgUser.
| WebRequest | $request | |
| User | $user |
Definition at line 855 of file SpecialSearch.php.
References $user, powerSearch(), and SearchEngine::userNamespaces().
| SpecialSearchOld::goResult | ( | $ | term | ) |
If an exact title match can be found, jump straight ahead to it.
| string | $term |
Definition at line 872 of file SpecialSearch.php.
References $t, $wgGoToEdit, $wgOut, SearchEngine::getNearMatch(), Title::newFromText(), setupPage(), showResults(), wfEscapeWikiText(), wfMsgExt(), wfMsgNoTrans(), and wfRunHooks().
| SpecialSearchOld::powerSearch | ( | &$ | request | ) |
Extract "power search" namespace settings from the request object, returning a list of index numbers to search.
| WebRequest | $request |
Definition at line 1104 of file SpecialSearch.php.
References $name, $ns, and SearchEngine::searchableNamespaces().
Referenced by __construct().
| SpecialSearchOld::powerSearchBox | ( | $ | term | ) |
Generates the power search box at bottom of [[Special:Search]].
| $term | string: search term |
Definition at line 1386 of file SpecialSearch.php.
References $i, $name, $ns, $numRows, $out, $rows, $wgContLang, $wgScript, Xml::check(), Xml::checkLabel(), Xml::closeElement(), Xml::fieldset(), MWNamespace::getSubject(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::input(), Xml::label(), Xml::openElement(), SearchEngine::searchableNamespaces(), Xml::submitButton(), wfMsg(), and wfMsgExt().
Referenced by showResults().
| SpecialSearchOld::powerSearchFocus | ( | ) |
Definition at line 1457 of file SpecialSearch.php.
References $wgJsMimeType.
Referenced by showResults().
| SpecialSearchOld::powerSearchOptions | ( | ) |
Reconstruct the 'power search' options for links.
Definition at line 1119 of file SpecialSearch.php.
References $n.
Referenced by showHit(), and showResults().
| SpecialSearchOld::setupPage | ( | $ | term | ) |
Definition at line 1084 of file SpecialSearch.php.
References $wgOut, Title::newFromText(), wfEscapeWikiText(), and wfMsg().
Referenced by goResult(), and showResults().
| SpecialSearchOld::shortDialog | ( | $ | term | ) |
Definition at line 1466 of file SpecialSearch.php.
References $name, $ns, $out, $wgScript, Xml::closeElement(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::input(), Xml::openElement(), SearchEngine::searchableNamespaces(), Xml::submitButton(), and wfMsg().
Referenced by showResults().
| SpecialSearchOld::showHit | ( | $ | result, | |
| $ | terms | |||
| ) |
Format a single hit result.
| SearchResult | $result | |
| array | $terms terms to highlight |
Definition at line 1166 of file SpecialSearch.php.
References $result, $section, $size, $t, $wgContLang, $wgLang, $wgUser, SpecialPage::getTitleFor(), powerSearchOptions(), wfArrayToCGI(), wfFindFile(), wfMsg(), wfMsgExt(), wfMsgForContent(), wfProfileIn(), and wfProfileOut().
Referenced by showMatches().
| SpecialSearchOld::showInterwiki | ( | &$ | matches, | |
| $ | query | |||
| ) |
Show results from other wikis.
| SearchResultSet | $matches |
Definition at line 1289 of file SpecialSearch.php.
References $out, $result, $wgContLang, showInterwikiHit(), wfMsg(), wfProfileIn(), and wfProfileOut().
| SpecialSearchOld::showInterwikiHit | ( | $ | result, | |
| $ | lastInterwiki, | |||
| $ | terms, | |||
| $ | query, | |||
| $ | customCaptions | |||
| ) |
Show single interwiki link.
| SearchResult | $result | |
| string | $lastInterwiki | |
| array | $terms | |
| string | $query | |
| array | $customCaptions iw prefix -> caption |
Definition at line 1333 of file SpecialSearch.php.
References $out, $result, $t, $wgContLang, $wgLang, $wgUser, Title::newFromText(), wfArrayToCGI(), wfMsg(), wfProfileIn(), and wfProfileOut().
Referenced by showInterwiki().
| SpecialSearchOld::showMatches | ( | &$ | matches | ) |
Show whole set of results.
| SearchResultSet | $matches |
Definition at line 1133 of file SpecialSearch.php.
References $out, $result, $wgContLang, showHit(), wfProfileIn(), and wfProfileOut().
Referenced by showResults().
| SpecialSearchOld::showResults | ( | $ | term, | |
| $ | extra = '' | |||
| ) |
| string | $term | |
| string | $extra Extra HTML to add after "did you mean" |
Definition at line 918 of file SpecialSearch.php.
References $url, $wgDisableTextSearch, $wgInputEncoding, $wgOut, $wgSearchForwardUrl, $wgUser, Xml::closeElement(), SearchEngine::create(), Xml::element(), SpecialPage::getTitleFor(), Xml::openElement(), powerSearchBox(), powerSearchFocus(), powerSearchOptions(), setupPage(), shortDialog(), showMatches(), wfArrayToCGI(), wfMsg(), wfMsgExt(), wfProfileIn(), wfProfileOut(), wfRunHooks(), wfShowingResults(), wfShowingResultsNum(), and wfViewPrevNext().
Referenced by goResult().
1.5.9