Document: ezcDocumentCreoleWiki
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentCreoleWiki
|
Document handler for Creole wiki text documents. [
source]
Creole wiki markup is a standardisation intiative for wiki markup languages, which all differ more or less slightly in the used markup syntax. The documentation can be found at:
http://www.wikicreole.org/wiki/Home
This document handler implements conversions for Crole wiki markup. The tokenizer, which differs for each wiki language, can be set directly, or you may use on of the other extended implementations for the specific sytaxes:
- ezcDocumentConfluenceWiki
- ezcDocumentCreoleWiki
- ezcDocumentDokuwikiWiki
Each wiki syntax has some sort of plugin mechanism, which allows you to handle the contents of a special formatted syntax element using custom classes or external applications. You can register a plugin for this, which then need to "parse" the element contents itself and may return random docbook markup.
The basic conversion of a wiki document into a docbook document, using the default creole tokenizer, looks like:
1. $document = new ezcDocumentCreoleWiki();
2. $document->loadString( '
3. = Example text =
4.
5. Just some exaple paragraph with a heading, some **emphasis** markup and a
6. [[http://ezcomponents.org|link]].' );
7.
8. $docbook = $document->getAsDocbook();
9. echo $docbook->save();
For the conversion back from docbook to wiki markup, currently only one converter to creole markup has been implemented. This conversion can be used like:
Parents
ezcDocument
|
--ezcDocumentWiki
|
--ezcDocumentCreoleWiki
Inherited Member Variables
From
ezcDocumentWiki:
From
ezcDocument:
Inherited Methods
From
ezcDocumentWiki :
From
ezcDocument :
Last updated: Mon, 29 Jun 2009