< Manual:Hooks 
 
      | 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": "MyExtensionHooks::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
- $obj: The XmlDumpWriter object.
- &$out: The text being output.
- $row: The database row for the revision.
- $text: The revision text.
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.