1 | <?php |
||
16 | class KmlPrinter extends FileExportPrinter { |
||
17 | |||
18 | /** |
||
19 | * @param SMWQueryResult $res |
||
20 | * @param int $outputMode |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | public function getResultText( SMWQueryResult $res, $outputMode ) { |
||
31 | |||
32 | private function getKML( SMWQueryResult $res, int $outputMode ): string { |
||
41 | |||
42 | /** |
||
43 | * Returns a link (HTML) pointing to a query that returns the actual KML file. |
||
44 | */ |
||
45 | private function getKMLLink( SMWQueryResult $res, int $outputMode ): string { |
||
80 | |||
81 | /** |
||
82 | * @see SMWResultPrinter::getParamDefinitions |
||
83 | * |
||
84 | * @param ParamDefinition[] $definitions |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | public function getParamDefinitions( array $definitions ) { |
||
109 | |||
110 | /** |
||
111 | * @see SMWIExportPrinter::getMimeType |
||
112 | * |
||
113 | * @param SMWQueryResult $queryResult |
||
114 | * |
||
115 | * @return string |
||
116 | */ |
||
117 | public function getMimeType( SMWQueryResult $queryResult ) { |
||
120 | |||
121 | /** |
||
122 | * @see SMWIExportPrinter::getFileName |
||
123 | * |
||
124 | * @param SMWQueryResult $queryResult |
||
125 | * |
||
126 | * @return string|boolean |
||
127 | */ |
||
128 | public function getFileName( SMWQueryResult $queryResult ) { |
||
131 | |||
132 | /** |
||
133 | * @see SMWResultPrinter::getName() |
||
134 | */ |
||
135 | public final function getName() { |
||
138 | |||
139 | /** |
||
140 | * @see SMWResultPrinter::handleParameters |
||
141 | * |
||
142 | * @param array $params |
||
143 | * @param $outputMode |
||
144 | */ |
||
145 | protected function handleParameters( array $params, $outputMode ) { |
||
148 | } |
||
149 |