Manual:Hooks/XmlDumpWriterWriteRevision
XmlDumpWriterWriteRevision | |
---|---|
Available from version 1.16.0 Called at the end of a revision in an XML dump, to add extra metadata. | |
Define function: | public static function onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"XmlDumpWriterWriteRevision": "MediaWiki\\Extension\\MyExtension\\Hooks::onXmlDumpWriterWriteRevision"
}
}
|
Called from: | File(s): export/XmlDumpWriter.php |
Interface: | XmlDumpWriterWriteRevisionHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:XmlDumpWriterWriteRevision extensions.
Details
edit- $obj: The XmlDumpWriter object.
- &$out: The text being output.
- $row: The database row for the revision.
- $text: The revision text.