r62711 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62710‎ | r62711 | r62712 >
Date:17:39, 19 February 2010
Author:ialex
Status:ok
Tags:
Comment:
Fixed some doxygen warnings
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageConverter.php
@@ -41,16 +41,13 @@
4242 * Constructor
4343 *
4444 * @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
5350 */
54 - function __construct( $langobj, $maincode,
 51+ public function __construct( $langobj, $maincode,
5552 $variants = array(),
5653 $variantfallbacks = array(),
5754 $flags = array(),
@@ -1035,11 +1032,10 @@
10361033 /**
10371034 * Constructor
10381035 *
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
10421038 */
1043 - function __construct( $text, $converter ) {
 1039+ public function __construct( $text, $converter ) {
10441040 $this->mText = $text;
10451041 $this->mConverter = $converter;
10461042 }
@@ -1047,11 +1043,10 @@
10481044 /**
10491045 * Check if variants array in convert array.
10501046 *
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
10541049 */
1055 - function getTextInBidtable( $variants ) {
 1050+ public function getTextInBidtable( $variants ) {
10561051 $variants = (array)$variants;
10571052 if ( !$variants ) {
10581053 return false;

Status & tagging log