[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
File Size: | 502 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
ConverterRule:: (16 methods):
__construct()
getTextInBidtable()
parseFlags()
parseRules()
getRulesDesc()
getRuleConvertedStr()
getRuleConvertedTitle()
generateConvTable()
parse()
hasRules()
getDisplay()
getTitle()
getRulesAction()
getConvTable()
getRules()
getFlags()
Class: ConverterRule - X-Ref
Parser for rules of language conversion , parse rules in -{ }- tag.__construct( $text, $converter ) X-Ref |
Constructor param: string $text The text between -{ and }- param: LanguageConverter $converter |
getTextInBidtable( $variants ) X-Ref |
Check if variants array in convert array. param: array|string $variants Variant language code return: string Translated text |
parseFlags() X-Ref |
Parse flags with syntax -{FLAG| ... }- |
parseRules() X-Ref |
Generate conversion table. |
getRulesDesc() X-Ref |
return: string |
getRuleConvertedStr( $variant ) X-Ref |
Parse rules conversion. param: string $variant return: string |
getRuleConvertedTitle( $variant ) X-Ref |
Similar to getRuleConvertedStr(), but this prefers to use original page title if $variant === $this->mConverter->mMainLanguageCode and may return false in this case (so this title conversion rule will be ignored and the original title is shown). param: string $variant The variant code to display page title in return: string|bool The converted title or false if just page name |
generateConvTable() X-Ref |
Generate conversion table for all text. |
parse( $variant = null ) X-Ref |
Parse rules and flags. param: string $variant Variant language code |
hasRules() X-Ref |
getDisplay() X-Ref |
Get display text on markup -{...}- return: string |
getTitle() X-Ref |
Get converted title. return: string |
getRulesAction() X-Ref |
Return how deal with conversion rules. return: string |
getConvTable() X-Ref |
Get conversion table. (bidirectional and unidirectional conversion table) return: array |
getRules() X-Ref |
Get conversion rules string. return: string |
getFlags() X-Ref |
Get conversion flags. return: array |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |