New getPageHeader() method. Allow to add some text before outputting the results.
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 15 Aug 2004 19:22:40 +0000 (19:22 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 15 Aug 2004 19:22:40 +0000 (19:22 +0000)
includes/QueryPage.php

index a151405..56ed2aa 100644 (file)
@@ -64,6 +64,12 @@ class QueryPage {
        function formatResult( $skin, $result ) {
                return '';
        }
+               
+       # The content returned by this function will be output before any result
+       
+       function getPageHeader( ) {
+               return '';
+       }
 
        # This is the actual workhorse. It does everything needed to make a
        # real, honest-to-gosh query page.
@@ -138,6 +144,8 @@ class QueryPage {
 
 
                $sk = $wgUser->getSkin( );
+               
+               $wgOut->addHTML( $this->getPageHeader() );
 
                $top = wfShowingResults( $offset, $num);
                $wgOut->addHTML( "<p>{$top}\n" );