RevTag Class Reference

Abstraction for revtag table to handle new and old schemas during migration. More...

List of all members.

Static Public Member Functions

static checkSchema ()
 Determines the schema version.
static getType ($tag)
 Returns value suitable for rt_type field.
static typeToTag ($tag)
 Converts rt_type field back to the tag name.

Static Protected Member Functions

static loadTags ()
 Loads the list of tags from database using the old schema.

Static Protected Attributes

static $schema = false

Detailed Description

Abstraction for revtag table to handle new and old schemas during migration.

Definition at line 14 of file RevTag.php.


Member Function Documentation

static RevTag::checkSchema (  )  [static]

Determines the schema version.

Returns:
int

Definition at line 22 of file RevTag.php.

static RevTag::getType ( tag  )  [static]
static RevTag::loadTags (  )  [static, protected]

Loads the list of tags from database using the old schema.

Returns:
array tag names => tag id

Definition at line 82 of file RevTag.php.

Referenced by getType(), and typeToTag().

static RevTag::typeToTag ( tag  )  [static]

Converts rt_type field back to the tag name.

Parameters:
$tag int rt_type value
Exceptions:
MWException 
Returns:
string

Definition at line 62 of file RevTag.php.

Referenced by SpecialPageTranslation::buildPageArray().

Here is the call graph for this function:


Member Data Documentation

RevTag::$schema = false [static, protected]

Definition at line 15 of file RevTag.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:52 2013 for MediaWiki Translate Extension by  doxygen 1.6.3