summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php')
-rw-r--r--www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php b/www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php
index 90d89f53..36a66555 100644
--- a/www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php
+++ b/www/wiki/extensions/SemanticResultFormats/SemanticResultFormats.php
@@ -109,10 +109,10 @@ class SemanticResultFormats {
'eventline' => 'SRFTimeline',
'vcard' => 'SRF\vCard\vCardFileExportPrinter',
'icalendar' => 'SRF\iCalendar\iCalendarFileExportPrinter',
- 'bibtex' => 'SRFBibTeX',
+ 'bibtex' => 'SRF\BibTex\BibTexFileExportPrinter',
'calendar' => 'SRFCalendar',
'eventcalendar' => 'SRF\EventCalendar',
- 'outline' => 'SRFOutline',
+ 'outline' => 'SRF\Outline\OutlineResultPrinter',
'sum' => 'SRFMath',
'product' => 'SRFMath',
'average' => 'SRFMath',
@@ -125,7 +125,7 @@ class SemanticResultFormats {
'jitgraph' => 'SRFJitGraph',
'jqplotchart' => 'SRFjqPlotChart',
'jqplotseries' => 'SRFjqPlotSeries',
- 'graph' => 'SRFGraph',
+ 'graph' => 'SRF\Graph\GraphPrinter',
'process' => 'SRFProcess',
'gallery' => 'SRF\Gallery',
'tagcloud' => 'SRF\TagCloud',
@@ -147,8 +147,8 @@ class SemanticResultFormats {
'dygraphs' => 'SRFDygraphs',
'incoming' => 'SRFIncoming',
'media' => 'SRF\MediaPlayer',
- 'excel' => 'SRF\SRFExcel',
- 'datatables' => 'SRF\DataTables'
+ 'datatables' => 'SRF\DataTables',
+ 'gantt' => 'SRF\Gantt\GanttPrinter'
];
$formatAliases = [
@@ -161,6 +161,11 @@ class SemanticResultFormats {
'jqplotseries' => [ 'jqplot series' ],
];
+ if ( class_exists( '\PhpOffice\PhpSpreadsheet\Spreadsheet' ) ) {
+ $formatClasses['spreadsheet'] = 'SRF\SpreadsheetPrinter';
+ $formatAliases['spreadsheet'] = [ 'excel' ];
+ }
+
foreach ( $GLOBALS['srfgFormats'] as $format ) {
if ( array_key_exists( $format, $formatClasses ) ) {
$GLOBALS['smwgResultFormats'][$format] = $formatClasses[$format];