Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Wikidot drives its parser and renderer through the Wikidot\Utils\WikiTransformation class, which has a large number of fields and methods, making it difficult to determine exactly what the contract of the class is intended to be.

Here we will document all the present usages of WikiTransformation to see what expectations and usecases it has, to be able to design the interface of WikitextBackend.


FeedModule.php, FrontForumModule.php:

$wt = new WikiTransformation();
$wt->setMode("feed");
$template = $wt->processSource($format);

ForumPreviewPostModule.php, ForumAction.php:

$wt = new WikiTransformation();
$wt->setMode('post');
$body = $wt->processSource($source);

ForumPostRevisionModule.php:

$source = $revision->getText();
$wt = new WikiTransformation();
$body = $wt->processSource($source);

PMAction.php, PMPreviewModule.php:

$wt = new WikiTransformation();
$wt->setMode('pm');
$body = $wt->processSource($source);

PMDraftsMessageModule.php:

$wt = new WikiTransformation();
$wt->setMode('pm');
$message->setBody($wt->processSource($message->getBody()));

  • No labels