Home Features Demos Download Installation User Manual Developer Manual Relation function Credits

Login

inc/parser.php

Defines the class for the parsers

Objets

swParser

info() returns a helpline on the function an its arguments
dowork(&$wiki) calculates the result. Parser receive the wiki as argument and can change it.

All parsers are in the inc/parsers folder. There is no site folder for custom parsers. The order of the parses matters, so new parsers cannot be added without caution.

Conventions

  • In general, parsers start with $s = $wiki->parsedContent,, analyze and manipulate $s and make the inverse operation $wiki->parsedContent = $s; .
  • Some parsers may have side effects on other properties of the wiki.
  • Some parsers may even create a new wiki on the fly, like redirection.

File structure inc folder