[ Index ]

PHP Cross Reference of DokuWiki




/inc/Extension/ -> SyntaxPlugin.php (summary)

(no description)

File Size: 132 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SyntaxPlugin:: (3 methods):

Class: SyntaxPlugin  - X-Ref

Syntax Plugin Prototype

All DokuWiki plugins to extend the parser/rendering mechanism
need to inherit from this class

getAllowedTypes()   X-Ref
Allowed Mode Types

Defines the mode types for other dokuwiki markup that maybe nested within the
plugin's own markup. Needs to return an array of one or more of the mode types
defined in $PARSER_MODES in Parser.php

return: array

getPType()   X-Ref
Paragraph Type

Defines how this syntax is handled regarding paragraphs. This is important
for correct XHTML nesting. Should return one of the following:

'normal' - The plugin can be used inside paragraphs
'block'  - Open paragraphs need to be closed before plugin output
'stack'  - Special case. Plugin wraps other paragraphs.

see: Doku_Handler_Block
return: string

accepts($mode)   X-Ref
There should be no need to override this function

return: bool
param: string $mode