Documentation addition/tweaks
authorSam Reed <reedy@users.mediawiki.org>
Mon, 10 Jan 2011 04:44:33 +0000 (04:44 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 10 Jan 2011 04:44:33 +0000 (04:44 +0000)
includes/Xml.php
includes/resourceloader/ResourceLoaderModule.php
includes/resourceloader/ResourceLoaderUserOptionsModule.php
languages/Language.php

index 65f2010..83c3d9e 100644 (file)
@@ -620,7 +620,7 @@ class Xml {
         * Create a call to a JavaScript function. The supplied arguments will be 
         * encoded using Xml::encodeJsVar(). 
         *
-        * @param $name The name of the function to call, or a JavaScript expression
+        * @param $name String The name of the function to call, or a JavaScript expression
         *    which evaluates to a function object which is called.
         * @param $args Array of arguments to pass to the function.
         * @since 1.17
index 3ef4168..7783915 100644 (file)
@@ -58,6 +58,7 @@ abstract class ResourceLoaderModule {
 
        /**
         * Get whether CSS for this module should be flipped
+        * @param $context ResourceLoaderContext
         */
        public function getFlip( $context ) {
                return $context->getDirection() === 'rtl';
index ae654b8..82563dc 100644 (file)
@@ -109,6 +109,10 @@ class ResourceLoaderUserOptionsModule extends ResourceLoaderModule {
                return array();
        }
 
+       /**
+        * @param  $context ResourceLoaderContext
+        * @return bool
+        */
        public function getFlip( $context ) {
                global $wgContLang;
 
index 0526f35..62a2b11 100644 (file)
@@ -132,6 +132,8 @@ class Language {
 
        /**
         * Get a cached language object for a given language code
+        * @param $code String
+        * @return Language
         */
        static function factory( $code ) {
                if ( !isset( self::$mLangObjCache[$code] ) ) {
@@ -146,6 +148,8 @@ class Language {
 
        /**
         * Create a language object for a given language code
+        * @param $code String
+        * @return Language
         */
        protected static function newFromCode( $code ) {
                global $IP;