blob: 40d5b5b5067ad9f687d6a20c93fcf8de390a6d7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}
}
|