From: Antoine Musso Date: Sun, 15 Aug 2004 19:22:40 +0000 (+0000) Subject: New getPageHeader() method. Allow to add some text before outputting the results. X-Git-Tag: 1.5.0alpha1~2326 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=a2be70707c1970b37d838f424c9deba3df6c77f4;p=lhc%2Fweb%2Fwiklou.git New getPageHeader() method. Allow to add some text before outputting the results. --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index a151405db6..56ed2aa85d 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -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( "

{$top}\n" );