46 lines
731 B
Markdown
46 lines
731 B
Markdown
<pre>
|
|
/**
|
|
* @license GNU GPL v2+
|
|
* @since 3.0
|
|
*
|
|
* @author ...
|
|
*/
|
|
class FooResultPrinter extends ResultPrinter {
|
|
|
|
/**
|
|
* @see ResultPrinter::getName
|
|
*
|
|
* {@inheritDoc}
|
|
*/
|
|
public function getName() {
|
|
return '';
|
|
}
|
|
|
|
/**
|
|
* @see ResultPrinter::getParamDefinitions
|
|
*
|
|
* {@inheritDoc}
|
|
*/
|
|
public function getParamDefinitions( array $definitions ) {
|
|
$definitions = parent::getParamDefinitions( $definitions );
|
|
|
|
$definitions[] = [
|
|
'name' => 'foo',
|
|
'message' => 'smw-paramdesc-foo',
|
|
'default' => '',
|
|
];
|
|
|
|
return $definitions;
|
|
}
|
|
|
|
/**
|
|
* @see ResultPrinter::getResultText
|
|
*
|
|
* {@inheritDoc}
|
|
*/
|
|
protected function getResultText( QueryResult $queryResult, $outputMode ) {
|
|
return '';
|
|
}
|
|
}
|
|
</pre>
|