Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php |
— | — | @@ -420,7 +420,7 @@ |
421 | 421 | * @return array |
422 | 422 | */ |
423 | 423 | protected function textDisplayParameters() { |
424 | | - /*$params = array(); |
| 424 | + $params = array(); |
425 | 425 | |
426 | 426 | $params['intro'] = new Parameter( 'intro' ); |
427 | 427 | $params['intro']->setDescription( wfMsg( 'smw_paramdesc_intro' ) ); |
— | — | @@ -431,12 +431,7 @@ |
432 | 432 | $params['default'] = new Parameter( 'default' ); |
433 | 433 | $params['default']->setDescription( wfMsg( 'smw_paramdesc_default' ) ); |
434 | 434 | |
435 | | - return $params;*/ |
436 | | - return array( |
437 | | - array( 'name' => 'intro', 'type' => 'string', 'description' => wfMsg( 'smw_paramdesc_intro' ) ), |
438 | | - array( 'name' => 'outro', 'type' => 'string', 'description' => wfMsg( 'smw_paramdesc_outro' ) ), |
439 | | - array( 'name' => 'default', 'type' => 'string', 'description' => wfMsg( 'smw_paramdesc_default' ) ), |
440 | | - ); |
| 435 | + return $params; |
441 | 436 | } |
442 | 437 | |
443 | 438 | /** |
— | — | @@ -448,20 +443,14 @@ |
449 | 444 | * @return array |
450 | 445 | */ |
451 | 446 | protected function exportFormatParameters() { |
452 | | - /*$params = $this->getParameters(); |
| 447 | + $params = $this->getParameters(); |
453 | 448 | |
454 | 449 | unset( $params['link'] ); |
455 | 450 | |
456 | 451 | $params['searchlabel'] = new Parameter( 'searchlabel' ); |
457 | 452 | $params['searchlabel']->setDescription( wfMsg( 'smw_paramdesc_searchlabel' ) ); |
458 | 453 | |
459 | | - return $params; */ |
460 | | - return array( |
461 | | - array( 'name' => 'limit', 'type' => 'int', 'description' => wfMsg( 'smw_paramdesc_limit' ) ), |
462 | | - array( 'name' => 'headers', 'type' => 'enumeration', 'description' => wfMsg( 'smw_paramdesc_headers' ), 'values' => array( 'show', 'hide', 'plain' ) ), |
463 | | - array( 'name' => 'mainlabel', 'type' => 'string', 'description' => wfMsg( 'smw_paramdesc_mainlabel' ) ), |
464 | | - array( 'name' => 'searchlabel', 'type' => 'string', 'description' => wfMsg( 'smw_paramdesc_searchlabel' ) ), |
465 | | - ); |
| 454 | + return $params; |
466 | 455 | } |
467 | 456 | |
468 | 457 | /** |
— | — | @@ -474,7 +463,7 @@ |
475 | 464 | * @return array |
476 | 465 | */ |
477 | 466 | public function getParameters() { |
478 | | - /*$params = array(); |
| 467 | + $params = array(); |
479 | 468 | |
480 | 469 | $params['limit'] = new Parameter( 'limit', Parameter::TYPE_INTEGER ); |
481 | 470 | $params['limit']->setDescription( wfMsg( 'smw_paramdesc_limit' ) ); |
— | — | @@ -490,13 +479,7 @@ |
491 | 480 | $params['link']->setDescription( wfMsg( 'smw_paramdesc_link' ) ); |
492 | 481 | $params['link']->addCriteria( new CriterionInArray( 'all', 'subject', 'none' ) ); |
493 | 482 | |
494 | | - return $params;*/ |
495 | | - return array( |
496 | | - array( 'name' => 'limit', 'type' => 'int', 'description' => wfMsg( 'smw_paramdesc_limit' ) ), |
497 | | - array( 'name' => 'headers', 'type' => 'enumeration', 'description' => wfMsg( 'smw_paramdesc_headers' ), 'values' => array( 'show', 'hide', 'plain' ) ), |
498 | | - array( 'name' => 'mainlabel', 'type' => 'string', 'description' => wfMsg( 'smw_paramdesc_mainlabel' ) ), |
499 | | - array( 'name' => 'link', 'type' => 'enumeration', 'description' => wfMsg( 'smw_paramdesc_link' ), 'values' => array( 'all', 'subject', 'none' ) ), |
500 | | - ); |
| 483 | + return $params; |
501 | 484 | } |
502 | 485 | |
503 | 486 | } |
\ No newline at end of file |