Skip to content

Commit

Permalink
Update SRF_GoogleBar.php
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Feb 20, 2025
1 parent 5707b6b commit 0361fa5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions formats/googlecharts/SRF_GoogleBar.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<?php

use SMW\Query\QueryResult;
use SMW\Query\ResultPrinters\ResultPrinter;

/**
* A query printer using the Google Chart API
*
* @note AUTOLOADED
*/

class SRFGoogleBar extends SMWResultPrinter {
class SRFGoogleBar extends ResultPrinter {

protected $m_width;

/**
* (non-PHPdoc)
* @see SMWResultPrinter::handleParameters()
* @see ResultPrinter::handleParameters()
*/
protected function handleParameters( array $params, $outputmode ) {
parent::handleParameters( $params, $outputmode );
Expand All @@ -23,7 +27,7 @@ public function getName() {
return wfMessage( 'srf_printername_googlebar' )->text();
}

protected function getResultText( SMWQueryResult $res, $outputmode ) {
protected function getResultText( QueryResult $res, $outputmode ) {
$this->isHTML = true;

$t = "";
Expand Down Expand Up @@ -77,7 +81,7 @@ protected function getResultText( SMWQueryResult $res, $outputmode ) {
}

/**
* @see SMWResultPrinter::getParamDefinitions
* @see ResultPrinter::getParamDefinitions
*
* @since 1.8
*
Expand Down

0 comments on commit 0361fa5

Please sign in to comment.