Index: trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GoogleBar.php |
— | — | @@ -19,6 +19,10 @@ |
20 | 20 | } |
21 | 21 | } |
22 | 22 | |
| 23 | + public function getName() { |
| 24 | + return wfMsg('srf_printername_googlebar'); |
| 25 | + } |
| 26 | + |
23 | 27 | protected function getResultText($res, $outputmode) { |
24 | 28 | global $smwgIQRunningNumber; |
25 | 29 | $this->isHTML = true; |
— | — | @@ -55,5 +59,13 @@ |
56 | 60 | |
57 | 61 | } |
58 | 62 | |
| 63 | + public function getParameters() { |
| 64 | + return array( |
| 65 | + array('name' => 'limit', 'type' => 'int', 'description' => wfMsg('smw_paramdesc_limit')), |
| 66 | + array('name' => 'height', 'type' => 'int', 'description' => wfMsg('srf_paramdesc_chartheight')), |
| 67 | + array('name' => 'width', 'type' => 'int', 'description' => wfMsg('srf_paramdesc_chartwidth')), |
| 68 | + ); |
| 69 | + } |
| 70 | + |
59 | 71 | } |
60 | 72 | |
Index: trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GooglePie.php |
— | — | @@ -25,6 +25,10 @@ |
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
| 29 | + public function getName() { |
| 30 | + return wfMsg('srf_printername_googlepie'); |
| 31 | + } |
| 32 | + |
29 | 33 | protected function getResultText($res, $outputmode) { |
30 | 34 | global $smwgIQRunningNumber; |
31 | 35 | $this->isHTML = true; |
— | — | @@ -55,4 +59,12 @@ |
56 | 60 | return '<img src="http://chart.apis.google.com/chart?cht=p3&chs=' . $this->m_width . 'x' . $this->m_height . '&chds=0,' . $max . '&chd=t:' . $t . '&chl=' . $n . '" width="' . $this->m_width . '" height="' . $this->m_height . '" />'; |
57 | 61 | } |
58 | 62 | |
59 | | -} |
\ No newline at end of file |
| 63 | + public function getParameters() { |
| 64 | + return array( |
| 65 | + array('name' => 'limit', 'type' => 'int', 'description' => wfMsg('smw_paramdesc_limit')), |
| 66 | + array('name' => 'height', 'type' => 'int', 'description' => wfMsg('srf_paramdesc_chartheight')), |
| 67 | + array('name' => 'width', 'type' => 'int', 'description' => wfMsg('srf_paramdesc_chartwidth')), |
| 68 | + ); |
| 69 | + } |
| 70 | + |
| 71 | +} |