Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -41,16 +41,13 @@ |
42 | 42 | * Constructor |
43 | 43 | * |
44 | 44 | * @param $langobj The Language Object |
45 | | - * @param string $maincode the main language code of this language |
46 | | - * @param array $variants the supported variants of this language |
47 | | - * @param array $variantfallback the fallback language of each variant |
48 | | - * @param array $markup array defining the markup used for manual conversion |
49 | | - * @param array $flags array defining the custom strings that maps to the |
50 | | - * flags |
51 | | - * @param array $manualLevel limit for supported variants |
52 | | - * @public |
| 45 | + * @param $maincode String: the main language code of this language |
| 46 | + * @param $variants Array: the supported variants of this language |
| 47 | + * @param $variantfallbacks Array: the fallback language of each variant |
| 48 | + * @param $flags Array: defining the custom strings that maps to the flags |
| 49 | + * @param $manualLevel Array: limit for supported variants |
53 | 50 | */ |
54 | | - function __construct( $langobj, $maincode, |
| 51 | + public function __construct( $langobj, $maincode, |
55 | 52 | $variants = array(), |
56 | 53 | $variantfallbacks = array(), |
57 | 54 | $flags = array(), |
— | — | @@ -1035,11 +1032,10 @@ |
1036 | 1033 | /** |
1037 | 1034 | * Constructor |
1038 | 1035 | * |
1039 | | - * @param string $text the text between -{ and }- |
1040 | | - * @param object $converter a LanguageConverter object |
1041 | | - * @access public |
| 1036 | + * @param $text String: the text between -{ and }- |
| 1037 | + * @param $converter LanguageConverter object |
1042 | 1038 | */ |
1043 | | - function __construct( $text, $converter ) { |
| 1039 | + public function __construct( $text, $converter ) { |
1044 | 1040 | $this->mText = $text; |
1045 | 1041 | $this->mConverter = $converter; |
1046 | 1042 | } |
— | — | @@ -1047,11 +1043,10 @@ |
1048 | 1044 | /** |
1049 | 1045 | * Check if variants array in convert array. |
1050 | 1046 | * |
1051 | | - * @param string $variant Variant language code |
1052 | | - * @return string Translated text |
1053 | | - * @public |
| 1047 | + * @param $variants Array or string: variant language code |
| 1048 | + * @return String: translated text |
1054 | 1049 | */ |
1055 | | - function getTextInBidtable( $variants ) { |
| 1050 | + public function getTextInBidtable( $variants ) { |
1056 | 1051 | $variants = (array)$variants; |
1057 | 1052 | if ( !$variants ) { |
1058 | 1053 | return false; |