Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| PFPageNameFormula | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| run | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | class PFPageNameFormula { |
| 4 | public static function run( Parser $parser ) { |
| 5 | $params = func_get_args(); |
| 6 | // The first standard argument is the parser, so shift it off |
| 7 | array_shift( $params ); |
| 8 | $formula = implode( '|', $params ); |
| 9 | |
| 10 | $parser->getOutput()->setExtensionData( 'PFPageNameFormula', $formula ); |
| 11 | |
| 12 | $title = $parser->getTitle(); |
| 13 | |
| 14 | // Return nothing |
| 15 | return ''; |
| 16 | } |
| 17 | } |