Introduce ContentHandler::importTransform.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 20 May 2014 17:09:51 +0000 (19:09 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 20 May 2014 17:12:35 +0000 (19:12 +0200)
commit5ca37ababd27754b9c9af8050743951ce7522ae1
treeba9e6cdf12bfab0b67abd330d30b851f80ea0207
parent926f665234e72ea5905bcb239d1f7a32b488f875
Introduce ContentHandler::importTransform.

ContentHandler::importTransform allows ContentHandler
implementations to apply transformations on page content
upon import. Such transformatiosn may by useful to update
from legacy formats, apply ID rewriting, etc.

Note that the transformation is done on the serialized content.
This allows for a "raw" import implementation that writes
improted blobs directly into a blob store without unserializing
them into an intermediary representation. Implementations may
choose to unserialize, transform, and then re-serialize.

Bug: 65256
Change-Id: I290fdf5589af43def8b3eddb68b5e1c23f6124e8
includes/Import.php
includes/content/ContentHandler.php