Introduce ContentHandler::exportTransform()
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 20 May 2014 17:21:49 +0000 (19:21 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 20 May 2014 17:21:49 +0000 (19:21 +0200)
commitee0ff556d4feb058ad87595ff43b79fe79078198
tree4f978b788ffd79c32437b920abafa01d5a8eb093
parent4f08c6760dd4a1b238efdb8f4717ad3b3a310125
Introduce ContentHandler::exportTransform()

ContentHandler::exportTransform() allows content handlers to apply
transformations upon export, such as conversion of legacy formats or
filtering of internal data.

Note that the transformation is applied to serialized content, since
the exporter will generally not unserialize the content blob to an
intermediate form before writing it to the dump. Implementations
may choose to unserialy, then transform and re-serialize.

Bug: 65256
Change-Id: Ic55a8bd8bea13041000b176c7c02c7c5ced76f6d
includes/Export.php
includes/content/ContentHandler.php