Podręcznik:$wgParserOutputHooks
![]() | Ta przestarzała funkcja nie powinna być już dłużej używana, ale jest nadal dostępna ze względu na wsteczną kompatybilność. Ta funkcja została zdeprecjonowana w wersji 1.38.0. |
Rozszerzenia: $wgParserOutputHooks | |
---|---|
Parser output hooks. |
|
Wprowadzono w wersji: | 1.11.0 |
Przestarzałe w wersji: | 1.38.0 (Gerrit change 760994; git #773801e4) |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (array) |
Domyślna wartość: | [] |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
This is an associative array where the key is an extension-defined tag (typically the extension name), and the value is a PHP callback. These will be called as an OutputPageParserOutput hook, if the relevant tag has been registered with the parser output object.
Registration is done with
$pout->addOutputHook( $tag, $data );
The callback has the form:
function outputHook( $outputPage, $parserOutput, $data ) {
/*...*/
}
Categories:
- MediaWiki configuration settings/pl
- MediaWiki configuration settings 1.11.0/pl
- MediaWiki configuration settings introduced in version 1.11.0/pl
- MediaWiki configuration settings deprecated in version 1.38.0/pl
- MediaWiki configuration settings still in use/pl
- MediaWiki deprecated or obsolete features/pl
- Extension variables/pl