Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -326,7 +326,11 @@ |
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
330 | | - * Determine format label from parameters. |
| 330 | + * Determines the format from an array of parameters, and returns it. |
| 331 | + * |
| 332 | + * @param array $params |
| 333 | + * |
| 334 | + * @return string |
331 | 335 | */ |
332 | 336 | static protected function getResultFormat( array $params ) { |
333 | 337 | $format = 'auto'; |
— | — | @@ -345,6 +349,13 @@ |
346 | 350 | return $format; |
347 | 351 | } |
348 | 352 | |
| 353 | + /** |
| 354 | + * Turns format aliases into main formats. |
| 355 | + * |
| 356 | + * @param string $format |
| 357 | + * |
| 358 | + * @return boolean Indicates if the passed format was an alias, and thus was changed. |
| 359 | + */ |
349 | 360 | static protected function resolveFormatAliases( &$format ) { |
350 | 361 | global $smwgResultAliases; |
351 | 362 | |
— | — | @@ -365,6 +376,11 @@ |
366 | 377 | * Find suitable SMWResultPrinter for the given format. The context in which the query is to be |
367 | 378 | * used determines some basic settings of the returned printer object. Possible contexts are |
368 | 379 | * SMWQueryProcessor::SPECIAL_PAGE, SMWQueryProcessor::INLINE_QUERY, SMWQueryProcessor::CONCEPT_DESC. |
| 380 | + * |
| 381 | + * @param string $format |
| 382 | + * @param $context |
| 383 | + * |
| 384 | + * @return SMWResultPrinter |
369 | 385 | */ |
370 | 386 | static public function getResultPrinter( $format, $context = SMWQueryProcessor::SPECIAL_PAGE ) { |
371 | 387 | global $smwgResultFormats; |