MediaWiki master
XmlDumpWriterWriteRevisionHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Export\Hook;
4
5use MediaWiki\Export\XmlDumpWriter;
6use MediaWiki\Revision\RevisionRecord;
7use stdClass;
8
29 public function onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text, $rev );
30}
31
33class_alias( XmlDumpWriterWriteRevisionHook::class, 'MediaWiki\\Hook\\XmlDumpWriterWriteRevisionHook' );
This is a hook handler interface, see docs/Hooks.md.
onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text, $rev)
This hook is called at the end of a revision in an XML dump, to add extra metadata.