Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_RSSlink.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | return wfMsg( 'smw_printername_rss' ); |
47 | 47 | } |
48 | 48 | |
49 | | - protected function getResultText( $res, $outputmode ) { |
| 49 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
50 | 50 | global $smwgIQRunningNumber, $wgSitename, $wgServer, $smwgRSSEnabled, $wgRequest; |
51 | 51 | $result = ''; |
52 | 52 | if ( $outputmode == SMW_OUTPUT_FILE ) { // make RSS feed |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_JSONlink.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | return wfMsg( 'smw_printername_json' ); |
37 | 37 | } |
38 | 38 | |
39 | | - protected function getResultText( $res, $outputmode ) { |
| 39 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
40 | 40 | global $wgServer, $wgScriptPath; |
41 | 41 | if ( $outputmode == SMW_OUTPUT_FILE ) { // create detached JSON file |
42 | 42 | $itemstack = array(); // contains Items for the items section |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Table.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | return wfMsg( 'smw_printername_' . $this->mFormat ); |
20 | 20 | } |
21 | 21 | |
22 | | - protected function getResultText( $res, $outputmode ) { |
| 22 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
23 | 23 | global $smwgIQRunningNumber; |
24 | 24 | SMWOutputs::requireHeadItem( SMW_HEADER_SORTTABLE ); |
25 | 25 | |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Auto.php |
— | — | @@ -58,7 +58,7 @@ |
59 | 59 | * @param SMWQueryResult $res |
60 | 60 | * @param $outputmode |
61 | 61 | */ |
62 | | - protected function getResultText( /* SMWQueryResult */ $res, $outputmode ) { |
| 62 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
63 | 63 | return ''; // acutally not needed in this implementation |
64 | 64 | } |
65 | 65 | |
— | — | @@ -67,4 +67,4 @@ |
68 | 68 | return wfMsg( 'smw_printername_auto' ); |
69 | 69 | } |
70 | 70 | |
71 | | -} |
\ No newline at end of file |
| 71 | +} |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Embedded.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | return wfMsg( 'smw_printername_embedded' ); |
36 | 36 | } |
37 | 37 | |
38 | | - protected function getResultText( $res, $outputmode ) { |
| 38 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
39 | 39 | global $wgParser; |
40 | 40 | // No page should embed itself, find out who we are: |
41 | 41 | if ( $wgParser->getTitle() instanceof Title ) { |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_CSV.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | return wfMsg( 'smw_printername_csv' ); |
42 | 42 | } |
43 | 43 | |
44 | | - protected function getResultText( $res, $outputmode ) { |
| 44 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
45 | 45 | $result = ''; |
46 | 46 | |
47 | 47 | if ( $outputmode == SMW_OUTPUT_FILE ) { // make CSV file |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_List.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | return wfMsg( 'smw_printername_' . $this->mFormat ); |
63 | 63 | } |
64 | 64 | |
65 | | - protected function getResultText( $res, $outputmode ) { |
| 65 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
66 | 66 | if ( ( $this->mFormat == 'template' ) && ( $this->mTemplate == false ) ) { |
67 | 67 | smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
68 | 68 | $res->addErrors( array( wfMsgForContent( 'smw_notemplategiven' ) ) ); |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_RDF.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | return wfMsg( 'smw_printername_rdf' ); |
45 | 45 | } |
46 | 46 | |
47 | | - protected function getResultText( $res, $outputmode ) { |
| 47 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
48 | 48 | if ( $outputmode == SMW_OUTPUT_FILE ) { // make RDF file |
49 | 49 | $serializer = $this->syntax == 'turtle' ? new SMWTurtleSerializer() : new SMWRDFXMLSerializer(); |
50 | 50 | $serializer->startSerialization(); |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_DSV.php |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | return wfMsg( 'smw_printername_dsv' ); |
55 | 55 | } |
56 | 56 | |
57 | | - protected function getResultText( /* SMWQueryResult */ $res, $outputmode ) { |
| 57 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
58 | 58 | if ( $outputmode == SMW_OUTPUT_FILE ) { // Make the DSV file. |
59 | 59 | return $this->getResultFileContents( $res ); |
60 | 60 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Category.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | return $namespace_labels[NS_CATEGORY]; |
48 | 48 | } |
49 | 49 | |
50 | | - protected function getResultText( $res, $outputmode ) { |
| 50 | + protected function getResultText( SMWQueryResult $res, $outputmode ) { |
51 | 51 | global $wgContLang; |
52 | 52 | |
53 | 53 | // <H3> will generate TOC entries otherwise. Probably need another way |