1 | <?php |
||
19 | class KmlPrinter extends FileExportPrinter { |
||
20 | |||
21 | /** |
||
22 | * Handler of the print request. |
||
23 | * |
||
24 | * @param SMWQueryResult $res |
||
25 | * @param $outputmode |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function getResultText( SMWQueryResult $res, $outputmode ) { |
||
36 | |||
37 | /** |
||
38 | * Returns the KML for the query result. |
||
39 | * |
||
40 | * @param SMWQueryResult $res |
||
41 | * @param integer $outputmode |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | private function getKML( SMWQueryResult $res, $outputmode ) { |
||
59 | |||
60 | /** |
||
61 | * Returns a link (HTML) pointing to a query that returns the actual KML file. |
||
62 | * |
||
63 | * @param SMWQueryResult $res |
||
64 | * @param integer $outputmode |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | private function getKMLLink( SMWQueryResult $res, $outputmode ) { |
||
104 | |||
105 | /** |
||
106 | * @see SMWResultPrinter::getParamDefinitions |
||
107 | * |
||
108 | * @param ParamDefinition[] $definitions |
||
109 | * |
||
110 | * @return array of ParamDefinition|array |
||
111 | */ |
||
112 | public function getParamDefinitions( array $definitions ) { |
||
140 | |||
141 | /** |
||
142 | * @see SMWIExportPrinter::getMimeType |
||
143 | * |
||
144 | * @param SMWQueryResult $queryResult |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getMimeType( SMWQueryResult $queryResult ) { |
||
151 | |||
152 | /** |
||
153 | * @see SMWIExportPrinter::getFileName |
||
154 | * |
||
155 | * @param SMWQueryResult $queryResult |
||
156 | * |
||
157 | * @return string|boolean |
||
158 | */ |
||
159 | public function getFileName( SMWQueryResult $queryResult ) { |
||
162 | |||
163 | /** |
||
164 | * @see SMWResultPrinter::getName() |
||
165 | */ |
||
166 | public final function getName() { |
||
169 | |||
170 | /** |
||
171 | * @see SMWResultPrinter::handleParameters |
||
172 | * |
||
173 | * @param array $params |
||
174 | * @param $outputmode |
||
175 | */ |
||
176 | protected function handleParameters( array $params, $outputmode ) { |
||
179 | } |
||
180 |