...
Code Block | ||
---|---|---|
| ||
$wt = new WikiTransformation(); $wt->setPage($page); $result = $wt->processSource($source); |
Code Block | ||
---|---|---|
| ||
private function assemblySource($source, $templateSource, $page = null)
{
$t = new WikiTransformation(false);
return $t->assemblyTemplate($source, $templateSource, $page);
} |
ListPagesModule.php
:
Code Block | ||
---|---|---|
| ||
if ($separation) { $wt = new WikiTransformation(); $wt->setMode("list"); $wt->setPage($page); $b = $wt->processSource($b); $b = "<div class=\"list-pages-item\">\n" . $b . "</div>"; //$b = "[[div class=\"list-pages-item\"]]\n".$b."\n[[/div]]"; } |
...
Code Block | ||
---|---|---|
| ||
$wt = new WikiTransformation(); // strip the Wiki processing $wt->wiki->rules = array( 'Include', 'Prefilter', 'Delimiter', // 'Moduledelimiter', 'Code', 'Raw', 'Modulepre', 'Module', 'Module654', 'Comment', 'Math', // 'Freelink', // 'Equationreference', //'Footnote', //'Footnoteitem', //'Footnoteblock', //'Bibitem', //'Bibliography', //'Bibcite', //'Divprefilter', //'Anchor', //'User', 'Heading'); $compiled = $wt->processSource($source); |
...
Overall, I would group this in a few categories:
Generating RSS feeds
Compiling forum posts
Compiling private messages
Compiling page text
Includes the
Outdater
, which has a bit of notable logic around page invalidation.
Handling
_template
pagesListPages
Miscellaneous
Social bookmarks, only for “purifying”
WDEditUtils
, which does page sectioning