* 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
/**
* Get whether CSS for this module should be flipped
+ * @param $context ResourceLoaderContext
*/
public function getFlip( $context ) {
return $context->getDirection() === 'rtl';
return array();
}
+ /**
+ * @param $context ResourceLoaderContext
+ * @return bool
+ */
public function getFlip( $context ) {
global $wgContLang;
/**
* Get a cached language object for a given language code
+ * @param $code String
+ * @return Language
*/
static function factory( $code ) {
if ( !isset( self::$mLangObjCache[$code] ) ) {
/**
* Create a language object for a given language code
+ * @param $code String
+ * @return Language
*/
protected static function newFromCode( $code ) {
global $IP;