Manual:Hooks/XmlDumpWriterOpenPage

XmlDumpWriterOpenPage
Available from version 1.16.0
Called at the end of XmlDumpWriter::openPage, to allow extra metadata to be added.
Define function:
public static function onXmlDumpWriterOpenPage( $obj, &$out, $row, $title ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"XmlDumpWriterOpenPage": "MediaWiki\\Extension\\MyExtension\\Hooks::onXmlDumpWriterOpenPage"
	}
}
Called from: File(s): export/XmlDumpWriter.php
Interface: XmlDumpWriterOpenPageHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:XmlDumpWriterOpenPage extensions.


Details

edit
  • $obj: The XmlDumpWriter object.
  • &$out: The output string.
  • $row: The database row for the page.
  • $title: The title of the page.