46 $hasTitle = $titleResultSet ? $titleResultSet->numRows() > 0 :
false;
47 $hasText = $textResultSet ? $textResultSet->numRows() > 0 :
false;
48 $hasSecondary = $textResultSet
51 $hasSecondaryInline = $textResultSet
55 if ( !$hasTitle && !$hasText && !$hasSecondary && !$hasSecondaryInline ) {
61 $out .= $this->
header( $this->specialPage->msg(
'titlematches' ) )
67 $out .=
"<div class='mw-search-visualclear'></div>" .
68 $this->
header( $this->specialPage->msg(
'textmatches' ) );
73 if ( $hasSecondaryInline ) {
75 foreach ( $iwResults as $interwiki => $results ) {
76 if ( $results instanceof
Status || $results->numRows() === 0 ) {
81 "<h2 class='mw-search-interwiki-header mw-search-visualclear'>" .
82 $this->specialPage->msg(
"search-interwiki-results-{$interwiki}" )->parse() .
88 if ( $hasSecondary ) {
89 $out .= $this->sidebarWidget->render(
110 "<span class='mw-headline'>" . $msg->escaped() .
"</span>" .
121 foreach ( $resultSet as $result ) {
122 $hits[] = $this->resultWidget->render( $result, $offset++ );
125 return "<ul class='mw-search-results'>" . implode(
'', $hits ) .
"</ul>";