r88953 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88952‎ | r88953 | r88954 >
Date:23:47, 26 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
update method signatures
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Array/SRF_Array.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Exhibit/SRF_Exhibit.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GoogleBar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GooglePie.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/GraphViz/SRF_Graph.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Math/SRF_Math.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Outline/SRF_Outline.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/vCard/SRF_vCard.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Outline/SRF_Outline.php
@@ -178,7 +178,7 @@
179179 return $text;
180180 }
181181
182 - protected function getResultText( $res, $outputmode ) {
 182+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
183183 $print_fields = array();
184184 foreach ( $res->getPrintRequests() as $pr ) {
185185 $field_name = $pr->getText( $outputmode, $this->mLinker );
Index: trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GoogleBar.php
@@ -23,7 +23,7 @@
2424 return wfMsg( 'srf_printername_googlebar' );
2525 }
2626
27 - protected function getResultText( $res, $outputmode ) {
 27+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
2828 $this->isHTML = true;
2929
3030 $t = "";
Index: trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GooglePie.php
@@ -29,7 +29,7 @@
3030 return wfMsg( 'srf_printername_googlepie' );
3131 }
3232
33 - protected function getResultText( $res, $outputmode ) {
 33+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
3434 $this->isHTML = true;
3535
3636 $t = "";
Index: trunk/extensions/SemanticResultFormats/iCalendar/SRF_iCalendar.php
@@ -56,7 +56,7 @@
5757 return wfMsg( 'srf_printername_icalendar' );
5858 }
5959
60 - protected function getResultText( $res, $outputmode ) {
 60+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
6161 return $outputmode == SMW_OUTPUT_FILE ? $this->getIcal( $res ) : $this->getIcalLink( $res, $outputmode );
6262 }
6363
Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php
@@ -21,7 +21,7 @@
2222 return $wgLang->formatNum( $this->getResultText( $results, SMW_OUTPUT_HTML ) );
2323 }
2424
25 - protected function getResultText( $res, $outputmode ) {
 25+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
2626 // initialize all necessary variables
2727 $sum = 0;
2828 $count = 0;
Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Graph.php
@@ -105,7 +105,7 @@
106106 }
107107 }
108108
109 - protected function getResultText( /* SMWQueryResult */ $res, $outputmode ) {
 109+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
110110 global $wgGraphVizSettings;
111111 $wgGraphVizSettings = new GraphVizSettings;
112112 $this->isHTML = true;
Index: trunk/extensions/SemanticResultFormats/GraphViz/SRF_Process.php
@@ -161,7 +161,7 @@
162162 * @returns String, rendered HTML output of this printer for the ask-query
163163 *
164164 */
165 - protected function getResultText( $res, $outputmode ) {
 165+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
166166 global $wgContLang; // content language object
167167
168168 //
Index: trunk/extensions/SemanticResultFormats/Exhibit/SRF_Exhibit.php
@@ -47,7 +47,7 @@
4848 }
4949 }
5050
51 - protected function getResultText( $res, $outputmode ) {
 51+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
5252
5353 global $smwgIQRunningNumber, $wgScriptPath, $wgGoogleMapsKey, $srfgScriptPath;
5454
Index: trunk/extensions/SemanticResultFormats/vCard/SRF_vCard.php
@@ -36,7 +36,7 @@
3737 return wfMsg( 'srf_printername_vcard' );
3838 }
3939
40 - protected function getResultText( $res, $outputmode ) {
 40+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
4141 global $wgSitename;
4242 $result = '';
4343 $items = array();
Index: trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php
@@ -21,7 +21,7 @@
2222 return $this->getResultText( $results, SMW_OUTPUT_HTML );
2323 }
2424
25 - public function getResultText( $results, $outputmode ) {
 25+ public function getResultText( SMWQueryResult $results, $outputmode ) {
2626 global $wgUser, $wgParser;
2727
2828 $ig = new ImageGallery();
Index: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
@@ -106,7 +106,7 @@
107107 $this->maxSize = $params['maxsize'];
108108 }
109109
110 - public function getResultText( /* SMWQueryResult */ $results, $outputmode ) {
 110+ public function getResultText( SMWQueryResult $results, $outputmode ) {
111111 return $this->getTagCloud( $this->getTagSizes( $this->getTags( $results, $outputmode ) ) );
112112 }
113113
Index: trunk/extensions/SemanticResultFormats/Ploticus/SRF_Ploticus.php
@@ -86,7 +86,7 @@
8787 }
8888 }
8989
90 - protected function getResultText( $res, $outputmode ) {
 90+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
9191 global $smwgIQRunningNumber, $wgUploadDirectory, $wgUploadPath, $wgTitle, $wgScriptPath, $srfgPloticusPath, $srfgEnvSettings;
9292
9393 $this->isHTML = true;
Index: trunk/extensions/SemanticResultFormats/Timeline/SRF_Timeline.php
@@ -56,7 +56,7 @@
5757 return wfMsg( 'srf_printername_' . $this->mFormat );
5858 }
5959
60 - protected function getResultText( /* SMWQueryResult */ $res, $outputmode ) {
 60+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
6161 global $smwgIQRunningNumber;
6262
6363 $this->includeJS();
Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php
@@ -55,7 +55,7 @@
5656 *
5757 * TODO: split up megamoth
5858 */
59 - protected function getResultText( $res, $outputmode ) {
 59+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
6060 global $wgUser;
6161 $skin = $wgUser->getSkin();
6262
Index: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotPie.php
@@ -104,7 +104,7 @@
105105 $wgOut->addExtensionStyle( "$srfgScriptPath/jqPlot/jquery.jqplot.css" );
106106 }
107107
108 - protected function getResultText( $res, $outputmode ) {
 108+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
109109 global $wgOut, $wgParser;
110110
111111 $wgParser->disableCache();
Index: trunk/extensions/SemanticResultFormats/jqPlot/SRF_jqPlotBar.php
@@ -135,7 +135,7 @@
136136 $wgOut->addExtensionStyle( "$srfgScriptPath/jqPlot/jquery.jqplot.css" );
137137 }
138138
139 - protected function getResultText( $res, $outputmode ) {
 139+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
140140 global $wgOut, $wgParser;
141141
142142 $wgParser->disableCache();
Index: trunk/extensions/SemanticResultFormats/BibTeX/SRF_BibTeX.php
@@ -53,7 +53,7 @@
5454 return wfMsg( 'srf_printername_bibtex' );
5555 }
5656
57 - protected function getResultText( $res, $outputmode ) {
 57+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
5858 global $wgSitename;
5959 $result = '';
6060 $items = array();
Index: trunk/extensions/SemanticResultFormats/Array/SRF_Array.php
@@ -115,7 +115,7 @@
116116 return wfMsg( 'srf_printername_' . $this->mFormat );
117117 }
118118
119 - protected function getResultText( $res, $outputmode ) {
 119+ protected function getResultText( SMWQueryResult $res, $outputmode ) {
120120 /*
121121 * @ToDo:
122122 * labels of requested properties could define default values. Seems not possible at the moment because

Status & tagging log