diff options
Diffstat (limited to 'inc/ParserMode/Base.php')
-rw-r--r-- | inc/ParserMode/Base.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/inc/ParserMode/Base.php b/inc/ParserMode/Base.php new file mode 100644 index 000000000..e399bbfd4 --- /dev/null +++ b/inc/ParserMode/Base.php @@ -0,0 +1,31 @@ +<?php + +namespace dokuwiki\ParserMode; + +class Base extends AbstractMode +{ + + /** + * Base constructor. + */ + public function __construct() + { + global $PARSER_MODES; + + $this->allowedModes = array_merge( + $PARSER_MODES['container'], + $PARSER_MODES['baseonly'], + $PARSER_MODES['paragraphs'], + $PARSER_MODES['formatting'], + $PARSER_MODES['substition'], + $PARSER_MODES['protected'], + $PARSER_MODES['disabled'] + ); + } + + /** @inheritdoc */ + public function getSort() + { + return 0; + } +} |