Index: trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GoogleBar.php |
— | — | @@ -44,12 +44,7 @@ |
45 | 45 | |
46 | 46 | // use numeric sortkey |
47 | 47 | if ( $object->isNumeric() ) { |
48 | | - // getDataItem was introduced in SMW 1.6, getValueKey was deprecated in the same version. |
49 | | - if ( method_exists( $object, 'getDataItem' ) ) { |
50 | | - $nr = $object->getDataItem()->getSortKey(); |
51 | | - } else { |
52 | | - $nr = $object->getValueKey(); |
53 | | - } |
| 48 | + $nr = $object->getDataItem()->getSortKey(); |
54 | 49 | |
55 | 50 | $count++; |
56 | 51 | $max = max( $max, $nr ); |
— | — | @@ -76,6 +71,8 @@ |
77 | 72 | } |
78 | 73 | |
79 | 74 | public function getParameters() { |
| 75 | + $this->supportsGroupBy = true; |
| 76 | + |
80 | 77 | $params = parent::getParameters(); |
81 | 78 | |
82 | 79 | // $params['height'] = new Parameter( 'height', Parameter::TYPE_INTEGER, 250 ); |
Index: trunk/extensions/SemanticResultFormats/GoogleCharts/SRF_GooglePie.php |
— | — | @@ -45,12 +45,7 @@ |
46 | 46 | while ( ( $object = efSRFGetNextDV( $field ) ) !== false ) { |
47 | 47 | // use numeric sortkey |
48 | 48 | if ( $object->isNumeric() ) { |
49 | | - // getDataItem was introduced in SMW 1.6, getValueKey was deprecated in the same version. |
50 | | - if ( method_exists( $object, 'getDataItem' ) ) { |
51 | | - $nr = $object->getDataItem()->getSortKey(); |
52 | | - } else { |
53 | | - $nr = $object->getValueKey(); |
54 | | - } |
| 49 | + $nr = $object->getDataItem()->getSortKey(); |
55 | 50 | |
56 | 51 | $max = max( $max, $nr ); |
57 | 52 | |