MediaWiki REL1_41
|
The rules used for language conversion, this processes the rules extracted by Parser from the -{ }-
wikitext syntax.
More...
Public Member Functions | |
__construct ( $text, LanguageConverter $converter) | |
getConvTable () | |
Get conversion table. | |
getDisplay () | |
Get display text on markup -{...}-. | |
getFlags () | |
Get conversion flags. | |
getRules () | |
Get conversion rules string. | |
getRulesAction () | |
Return how to deal with conversion rules. | |
getTextInBidtable ( $variants) | |
Check if the variant array is in the convert array. | |
getTitle () | |
Get converted title. | |
hasRules () | |
Checks if there are conversion rules. | |
parse ( $variant=null) | |
Parse rules and flags. | |
Public Attributes | |
array | $mBidtable = [] |
of the translation in each variant | |
LanguageConverter | $mConverter |
$mConvTable = [] | |
$mFlags = [] | |
$mRuleDisplay = '' | |
string | $mRules = '' |
the text of the rules | |
$mRulesAction = 'none' | |
$mRuleTitle = false | |
string | $mText |
original text in -{text}- | |
array | $mUnidtable = [] |
of the translation in each variant | |
$mVariantFlags = [] | |
The rules used for language conversion, this processes the rules extracted by Parser from the -{ }-
wikitext syntax.
Definition at line 28 of file ConverterRule.php.
ConverterRule::__construct | ( | $text, | |
LanguageConverter | $converter ) |
string | $text | The text between -{ and }- |
LanguageConverter | $converter |
Definition at line 60 of file ConverterRule.php.
ConverterRule::getConvTable | ( | ) |
Get conversion table.
(bidirectional and unidirectional conversion table)
Definition at line 492 of file ConverterRule.php.
References $mConvTable.
Referenced by LanguageConverter\applyManualConv().
ConverterRule::getDisplay | ( | ) |
Get display text on markup -{...}-.
Definition at line 467 of file ConverterRule.php.
References $mRuleDisplay.
ConverterRule::getFlags | ( | ) |
Get conversion flags.
Definition at line 508 of file ConverterRule.php.
References $mFlags.
ConverterRule::getRules | ( | ) |
Get conversion rules string.
Definition at line 500 of file ConverterRule.php.
References $mRules.
ConverterRule::getRulesAction | ( | ) |
Return how to deal with conversion rules.
Definition at line 483 of file ConverterRule.php.
References $mRulesAction.
Referenced by LanguageConverter\applyManualConv().
ConverterRule::getTextInBidtable | ( | $variants | ) |
Check if the variant array is in the convert array.
array | string | $variants | Variant language code |
Definition at line 71 of file ConverterRule.php.
ConverterRule::getTitle | ( | ) |
Get converted title.
Definition at line 475 of file ConverterRule.php.
References $mRuleTitle.
Referenced by LanguageConverter\applyManualConv().
ConverterRule::hasRules | ( | ) |
ConverterRule::parse | ( | $variant = null | ) |
Parse rules and flags.
string | null | $variant | Variant language code |
Definition at line 350 of file ConverterRule.php.
References $mFlags, $mRules, true, and wfMessage().
array ConverterRule::$mBidtable = [] |
of the translation in each variant
Definition at line 50 of file ConverterRule.php.
LanguageConverter ConverterRule::$mConverter |
Definition at line 36 of file ConverterRule.php.
ConverterRule::$mConvTable = [] |
Definition at line 46 of file ConverterRule.php.
Referenced by getConvTable().
ConverterRule::$mFlags = [] |
Definition at line 44 of file ConverterRule.php.
Referenced by getFlags(), and parse().
ConverterRule::$mRuleDisplay = '' |
Definition at line 37 of file ConverterRule.php.
Referenced by getDisplay().
string ConverterRule::$mRules = '' |
the text of the rules
Definition at line 42 of file ConverterRule.php.
Referenced by getRules(), and parse().
ConverterRule::$mRulesAction = 'none' |
Definition at line 43 of file ConverterRule.php.
Referenced by getRulesAction().
ConverterRule::$mRuleTitle = false |
Definition at line 38 of file ConverterRule.php.
Referenced by getTitle().
string ConverterRule::$mText |
original text in -{text}-
Definition at line 32 of file ConverterRule.php.
array ConverterRule::$mUnidtable = [] |
of the translation in each variant
Definition at line 54 of file ConverterRule.php.
ConverterRule::$mVariantFlags = [] |
Definition at line 45 of file ConverterRule.php.