1 | <?php |
||
17 | class SMKMLPrinter extends FileExportPrinter { |
||
18 | |||
19 | /** |
||
20 | * Handler of the print request. |
||
21 | * |
||
22 | * @since 0.7.3 |
||
23 | * |
||
24 | * @param SMWQueryResult $res |
||
25 | * @param $outputmode |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | public function getResultText( SMWQueryResult $res, $outputmode ) { |
||
37 | |||
38 | /** |
||
39 | * @see SMWResultPrinter::handleParameters |
||
40 | * |
||
41 | * @since 1.0 |
||
42 | * |
||
43 | * @param array $params |
||
44 | * @param $outputmode |
||
45 | */ |
||
46 | protected function handleParameters( array $params, $outputmode ) { |
||
49 | |||
50 | /** |
||
51 | * @see SMWResultPrinter::getParamDefinitions |
||
52 | * |
||
53 | * @since 3.0 |
||
54 | * |
||
55 | * @param ParamDefinition[] $definitions |
||
56 | * |
||
57 | * @return array of ParamDefinition|array |
||
58 | */ |
||
59 | public function getParamDefinitions( array $definitions ) { |
||
87 | |||
88 | /** |
||
89 | * Returns the KML for the query result. |
||
90 | * |
||
91 | * @since 0.7.3 |
||
92 | * |
||
93 | * @param SMWQueryResult $res |
||
94 | * @param integer $outputmode |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | protected function getKML( SMWQueryResult $res, $outputmode ) { |
||
111 | |||
112 | /** |
||
113 | * Returns a link (HTML) pointing to a query that returns the actual KML file. |
||
114 | * |
||
115 | * @since 0.7.3 |
||
116 | * |
||
117 | * @param SMWQueryResult $res |
||
118 | * @param integer $outputmode |
||
119 | * |
||
120 | * @return string |
||
121 | */ |
||
122 | protected function getKMLLink( SMWQueryResult $res, $outputmode ) { |
||
156 | |||
157 | /** |
||
158 | * @see SMWIExportPrinter::getMimeType |
||
159 | * |
||
160 | * @since 2.0 |
||
161 | * |
||
162 | * @param SMWQueryResult $queryResult |
||
163 | * |
||
164 | * @return string |
||
165 | */ |
||
166 | public function getMimeType( SMWQueryResult $queryResult ) { |
||
169 | |||
170 | /** |
||
171 | * @see SMWIExportPrinter::getFileName |
||
172 | * |
||
173 | * @since 2.0 |
||
174 | * |
||
175 | * @param SMWQueryResult $queryResult |
||
176 | * |
||
177 | * @return string|boolean |
||
178 | */ |
||
179 | public function getFileName( SMWQueryResult $queryResult ) { |
||
182 | |||
183 | /** |
||
184 | * @see SMWResultPrinter::getName() |
||
185 | */ |
||
186 | public final function getName() { |
||
189 | } |
||
190 |