diff options
Diffstat (limited to 'www/wiki/extensions/Translate/utils/RevTag.php')
-rw-r--r-- | www/wiki/extensions/Translate/utils/RevTag.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/www/wiki/extensions/Translate/utils/RevTag.php b/www/wiki/extensions/Translate/utils/RevTag.php new file mode 100644 index 00000000..40d5b5b5 --- /dev/null +++ b/www/wiki/extensions/Translate/utils/RevTag.php @@ -0,0 +1,31 @@ +<?php +/** + * Code related to revtag database table + * + * @file + * @author Niklas Laxström + * @license GPL-2.0-or-later + */ + +/** + * Abstraction for revtag table to handle new and old schemas during migration. + */ +class RevTag { + /** + * Returns value suitable for rt_type field. + * @param string $tag Tag name + * @return string + */ + public static function getType( $tag ) { + return $tag; + } + + /** + * Converts rt_type field back to the tag name. + * @param int $tag rt_type value + * @return string + */ + public static function typeToTag( $tag ) { + return $tag; + } +} |