// Parser Hook Functions
// ---------------------
- public static function ParserFirstCallInitHook(&$parser) {
+ public static function ParserFirstCallInitHook(Parser &$parser) {
$parser->setHook('bahnberichtformular', 'WrReport::bahnberichtformularParserHook');
$parser->setHook('bahnberichte', 'WrReport::bahnberichteParserHook');
$parser->setHook('bahnentabelle', 'WrReport::bahnentabelleParserHook');
/// \brief Is called when the tag <bahnberichtformular/> is encountered.
///
/// The current page name is taken.
- public static function bahnberichtformularParserHook($input, $args, $parser) {
+ public static function bahnberichtformularParserHook($input, array $args, Parser $parser, PPFrame $frame) {
// Username
$wgUser = $parser->getUser();
$author_name = NULL;
/// \brief Is called when the tag <bahnberichte/> is encountered.
///
/// The current page name is taken.
- public static function bahnberichteParserHook($input, $args, $parser) {
+ public static function bahnberichteParserHook($input, array $args, Parser $parser, PPFrame $frame) {
$parser->getOutput()->addModules('ext.wrreport'); // getOutput() returns class ParserOutput
$title = $parser->getTitle();
$page_id = $title->getArticleID();
/// Kemater Alm
/// Axamer Lizum
/// </bahnentabelle>
- public static function bahnentabelleParserHook($input, $args, $parser) {
+ public static function bahnentabelleParserHook($input, array $args, Parser $parser, PPFrame $frame) {
$parser->getOutput()->addModules('ext.wrreport');
// Add feed
/// <bahnenregiontabelle wiki="Innsbruck" /> (refers to region represented by the MediaWiki Title name)
/// <bahnenregiontabelle region_id="3" /> (refers to id in the wrregion table)
/// <bahnenregiontabelle region_name="Innsbruck" /> (refers to name in the wrregion table)
- public static function bahnenregiontabelleParserHook($input, $args, $parser) {
+ public static function bahnenregiontabelleParserHook($input, array $args, Parser $parser, PPFrame $frame) {
$parser->getOutput()->addModules('ext.wrreport');
try {
/// \brief Is called when the tag <rodelbahntabelle/> is encountered.
///
/// Description: See description of wrreport.php
- public static function rodelbahntabelleParserHook($input, $args, $parser) {
+ public static function rodelbahntabelleParserHook($input, array $args, Parser $parser, PPFrame $frame) {
$parser->getOutput()->addModules('ext.wrreport');
// Add feed
/// \brief Is called when the tag <avatar>username</avatar> is encountered.
- public static function avatarParserHook($input, $args, $parser, $frame) {
+ public static function avatarParserHook($input, array $args, Parser $parser, PPFrame $frame) {
$doc = new WrDOMDocument();
$sla = new WrServicesLibravatar();