28 global $wgPFEnableStringFunctions;
31 $class = ParserFunctions::class;
32 $parser->
setFunctionHook(
'if',
"$class::if", Parser::SFH_OBJECT_ARGS );
33 $parser->
setFunctionHook(
'ifeq',
"$class::ifeq", Parser::SFH_OBJECT_ARGS );
34 $parser->
setFunctionHook(
'switch',
"$class::switch", Parser::SFH_OBJECT_ARGS );
35 $parser->
setFunctionHook(
'ifexist',
"$class::ifexist", Parser::SFH_OBJECT_ARGS );
36 $parser->
setFunctionHook(
'ifexpr',
"$class::ifexpr", Parser::SFH_OBJECT_ARGS );
37 $parser->
setFunctionHook(
'iferror',
"$class::iferror", Parser::SFH_OBJECT_ARGS );
38 $parser->
setFunctionHook(
'time',
"$class::time", Parser::SFH_OBJECT_ARGS );
39 $parser->
setFunctionHook(
'timel',
"$class::localTime", Parser::SFH_OBJECT_ARGS );
46 if ( $wgPFEnableStringFunctions ) {