MediaWiki
1.30.0
|
A fake language variant converter. More...
Public Member Functions | |
__construct ( $langobj) | |
autoConvert ( $text, $variant=false) | |
autoConvertToAllVariants ( $text) | |
convert ( $t) | |
convertCategoryKey ( $key) | |
convertNamespace ( $ns) | |
convertTitle ( $t) | |
convertTo ( $text, $variant) | |
findVariantLink (&$l, &$n, $ignoreOtherCond=false) | |
getConvRuleTitle () | |
getDefaultVariant () | |
getExtraHashOptions () | |
getParsedTitle () | |
getPreferredVariant () | |
getURLVariant () | |
getVariantFallbacks ( $variant) | |
getVariants () | |
markNoConversion ( $text, $noParse=false) | |
translate ( $text, $variant) | |
updateConversionTable (Title $title) | |
validateVariant ( $variant=null) | |
Public Attributes | |
Language | $mLang |
Private Member Functions | |
reloadTables () | |
Used by test suites which need to reset the converter state. More... | |
A fake language variant converter.
Languages which do not implement variant conversion, for example, English, should return a FakeConverter rather than a LanguageConverter when asked for their converter. The fake converter just returns text unchanged, i.e. it doesn't do any conversion.
See https://www.mediawiki.org/wiki/Writing_systems#LanguageConverter.
Definition at line 34 of file FakeConverter.php.
FakeConverter::__construct | ( | $langobj | ) |
Definition at line 40 of file FakeConverter.php.
FakeConverter::autoConvert | ( | $text, | |
$variant = false |
|||
) |
Definition at line 44 of file FakeConverter.php.
FakeConverter::autoConvertToAllVariants | ( | $text | ) |
Definition at line 48 of file FakeConverter.php.
FakeConverter::convert | ( | $t | ) |
Definition at line 52 of file FakeConverter.php.
References $t.
FakeConverter::convertCategoryKey | ( | $key | ) |
Definition at line 114 of file FakeConverter.php.
FakeConverter::convertNamespace | ( | $ns | ) |
Definition at line 68 of file FakeConverter.php.
FakeConverter::convertTitle | ( | $t | ) |
FakeConverter::convertTo | ( | $text, | |
$variant | |||
) |
Definition at line 56 of file FakeConverter.php.
FakeConverter::findVariantLink | ( | & | $l, |
& | $n, | ||
$ignoreOtherCond = false |
|||
) |
Definition at line 99 of file FakeConverter.php.
FakeConverter::getConvRuleTitle | ( | ) |
Definition at line 95 of file FakeConverter.php.
FakeConverter::getDefaultVariant | ( | ) |
Definition at line 87 of file FakeConverter.php.
FakeConverter::getExtraHashOptions | ( | ) |
Definition at line 102 of file FakeConverter.php.
FakeConverter::getParsedTitle | ( | ) |
Definition at line 106 of file FakeConverter.php.
FakeConverter::getPreferredVariant | ( | ) |
Definition at line 83 of file FakeConverter.php.
FakeConverter::getURLVariant | ( | ) |
Definition at line 91 of file FakeConverter.php.
FakeConverter::getVariantFallbacks | ( | $variant | ) |
Definition at line 79 of file FakeConverter.php.
FakeConverter::getVariants | ( | ) |
Definition at line 75 of file FakeConverter.php.
FakeConverter::markNoConversion | ( | $text, | |
$noParse = false |
|||
) |
Definition at line 110 of file FakeConverter.php.
|
private |
Used by test suites which need to reset the converter state.
Definition at line 134 of file FakeConverter.php.
FakeConverter::translate | ( | $text, | |
$variant | |||
) |
Definition at line 122 of file FakeConverter.php.
FakeConverter::updateConversionTable | ( | Title | $title | ) |
Definition at line 126 of file FakeConverter.php.
FakeConverter::validateVariant | ( | $variant = null | ) |
Definition at line 118 of file FakeConverter.php.
Language FakeConverter::$mLang |
Definition at line 38 of file FakeConverter.php.