SpecialSearchOld Class Reference
[SpecialPage]

implements Special:Search - Run text & title search and display the output More...

List of all members.

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)


Detailed Description

implements Special:Search - Run text & title search and display the output

Definition at line 845 of file SpecialSearch.php.


Constructor & Destructor Documentation

SpecialSearchOld::__construct ( &$  request,
&$  user 
)

Set up basic search parameters from the request and user settings.

Typically you'll pass $wgRequest and $wgUser.

Parameters:
WebRequest $request
User $user
Access:
public

Definition at line 855 of file SpecialSearch.php.

References $user, powerSearch(), and SearchEngine::userNamespaces().


Member Function Documentation

SpecialSearchOld::goResult ( term  ) 

If an exact title match can be found, jump straight ahead to it.

Parameters:
string $term
Access:
public

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.

Parameters:
WebRequest $request
Returns:
array
Access:
private

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]].

Parameters:
$term string: search term
Returns:
$out string: HTML form

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.

Returns:
array
Access:
private

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  ) 

SpecialSearchOld::showHit ( result,
terms 
)

Format a single hit result.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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 = '' 
)


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

Generated on Sat Sep 5 02:08:47 2009 for MediaWiki by  doxygen 1.5.9