Page MenuHomePhabricator

Allow ContentHandler to transform content on import and export
Closed, ResolvedPublic

Description

ContentHandler should have importTransform( $text, $format ) and exportTransform( $text, $format ) methods to be called when importing/exporting pages. Per default, these functions would pass the text through unchanged.

The purpose of having these functions would be to give the ContentHandler a chance to validate or transform imported content according to local settings, and to normalize (possible old legacy) content serializations on export.


Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=2 s=2014-05-20

Details

Reference
bz65256

Related Objects

Event Timeline

bzimport raised the priority of this task from to High.
bzimport set Reference to bz65256.
bzimport added a subscriber: Unknown Object (MLST).
daniel created this task.May 13 2014, 12:57 PM

Change 134387 had a related patch set uploaded by Daniel Kinzler:
Introduce ContentHandler::importTransform.

https://gerrit.wikimedia.org/r/134387

Change 134389 had a related patch set uploaded by Daniel Kinzler:
Introduce ContentHandler::exportTransform()

https://gerrit.wikimedia.org/r/134389

Change 134387 merged by jenkins-bot:
Introduce ContentHandler::importTransform.

https://gerrit.wikimedia.org/r/134387

Change 134389 merged by jenkins-bot:
Introduce ContentHandler::exportTransform()

https://gerrit.wikimedia.org/r/134389