blob: b9d24bf50b0c367c6783d911b6dd579810ae7858 (
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+
*/
/**
* 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 $tag int rt_type value
* @return string
*/
public static function typeToTag( $tag ) {
return $tag;
}
}
|