Document: ezcDocumentDokuwikiWiki
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentDokuwikiWiki
|
Document handler for Dokuwiki wiki text documents. [
source]
Dokuwiki is a popular wiki system, for example used on wiki.php.net with a quite different syntax, and the most complete markup support, even including something like footnotes. The markup is documented at:
http://www.dokuwiki.org/dokuwiki
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 ezcDocumentDokuwikiWiki();
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();
A converter for the conversion from docbook back to dokuwiki wiki markup has not yet been implemented.
Parents
ezcDocument
|
--ezcDocumentWiki
|
--ezcDocumentDokuwikiWiki
Inherited Member Variables
From
ezcDocumentWiki:
From
ezcDocument:
Method Summary
Inherited Methods
From
ezcDocumentWiki :
From
ezcDocument :
Methods
createFromDocbook
Create document from docbook document
A document of the docbook format is provided and the internal document structure should be created out of this.
This method is required for all formats to have one central format, so that each format can be compiled into each other format using docbook as an intermediate format.
You may of course just call an existing converter for this conversion.
Parameters
Redefinition of
Last updated: Mon, 21 Dec 2009