Page MenuHomePhabricator

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


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



Related Objects


Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:24 AM
bzimport set Reference to bz65256.
bzimport added a subscriber: Unknown Object (MLST).

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

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

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

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