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