diff options
author | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-05-26 20:44:02 +0200 |
---|---|---|
committer | Gerrit Uitslag <klapinklapin@gmail.com> | 2014-05-26 20:44:02 +0200 |
commit | e5e6f447ba17ba51957a1228e55fe53d8087776a (patch) | |
tree | f59213d66fcb910725f8fd34def06e89d88e5241 /lib/plugins/syntax.php | |
parent | b66e5840006078112b8da741b2c612e446afd452 (diff) | |
parent | 8f2758f6b53b11db38d83ea9ad838ed802a6e635 (diff) | |
download | rpg-e5e6f447ba17ba51957a1228e55fe53d8087776a.tar.gz rpg-e5e6f447ba17ba51957a1228e55fe53d8087776a.tar.bz2 |
Merge remote-tracking branch 'origin/master' into trailingcolons
Conflicts:
inc/lang/cs/lang.php
inc/lang/hu/lang.php
Diffstat (limited to 'lib/plugins/syntax.php')
-rw-r--r-- | lib/plugins/syntax.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index 42a4903ec..4a301f927 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -20,9 +20,12 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin { * Syntax Type * * Needs to return one of the mode types defined in $PARSER_MODES in parser.php + * + * @return string */ function getType(){ trigger_error('getType() not implemented in '.get_class($this), E_USER_WARNING); + return ''; } /** @@ -31,6 +34,8 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin { * 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 */ function getAllowedTypes() { return array(); @@ -47,6 +52,7 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin { * 'stack' - Special case. Plugin wraps other paragraphs. * * @see Doku_Handler_Block + * @return string */ function getPType(){ return 'normal'; @@ -99,7 +105,10 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin { } /** - * There should be no need to override these functions + * There should be no need to override this function + * + * @param string $mode + * @return bool */ function accepts($mode) { |