sortnumber, 'mode' => mode string, 'obj' => plugin object) * @author Andreas Gohr * @deprecated 2026-04-16 use \dokuwiki\Parsing\ModeRegistry::getModes() instead */ function p_get_parsermodes() { DebugHelper::dbgDeprecatedFunction(\dokuwiki\Parsing\ModeRegistry::class . '::getModes()'); return \dokuwiki\Parsing\ModeRegistry::getInstance()->getModes(); } /** * Callback function for usort * * @param array $a * @param array $b * @return int $a is lower/equal/higher than $b * @author Andreas Gohr * @deprecated 2026-04-16 use \dokuwiki\Parsing\ModeRegistry::sortModes() instead */ function p_sort_modes($a, $b) { DebugHelper::dbgDeprecatedFunction(\dokuwiki\Parsing\ModeRegistry::class . '::sortModes()'); return \dokuwiki\Parsing\ModeRegistry::sortModes($a, $b); } /** * print a newline terminated string * * You can give an indention as optional parameter * * @author Andreas Gohr * * @param string $string line of text * @param int $indent number of spaces indention * @deprecated 2023-08-31 use echo instead */ function ptln($string, $indent = 0) { DebugHelper::dbgDeprecatedFunction('echo'); echo str_repeat(' ', $indent) . "$string\n"; }