1be906b56SAndreas Gohr<?php 2be906b56SAndreas Gohr 3be906b56SAndreas Gohrnamespace dokuwiki\Parsing\ParserMode; 4be906b56SAndreas Gohr 5*c8dd1b9dSAndreas Gohruse dokuwiki\Parsing\ModeRegistry; 6*c8dd1b9dSAndreas Gohr 7be906b56SAndreas Gohrclass Base extends AbstractMode 8be906b56SAndreas Gohr{ 9be906b56SAndreas Gohr /** 10be906b56SAndreas Gohr * Base constructor. 11be906b56SAndreas Gohr */ 12be906b56SAndreas Gohr public function __construct() 13be906b56SAndreas Gohr { 14*c8dd1b9dSAndreas Gohr $this->allowedModes = ModeRegistry::getInstance()->getModesForCategories([ 15*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_CONTAINER, 16*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_BASEONLY, 17*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_PARAGRAPHS, 18*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_FORMATTING, 19*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_SUBSTITION, 20*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_PROTECTED, 21*c8dd1b9dSAndreas Gohr ModeRegistry::CATEGORY_DISABLED, 22*c8dd1b9dSAndreas Gohr ]); 23be906b56SAndreas Gohr } 24be906b56SAndreas Gohr 25be906b56SAndreas Gohr /** @inheritdoc */ 26be906b56SAndreas Gohr public function getSort() 27be906b56SAndreas Gohr { 28be906b56SAndreas Gohr return 0; 29be906b56SAndreas Gohr } 30be906b56SAndreas Gohr} 31