models/Language.php
public static function getLanguages($active = true, $asArray = false)
    {
        if ($active) {
            return self::find()->where(['status' => static::STATUS_ACTIVE])->asArray($asArray)->all();
        } else {
            return self::find()->asArray($asArray)->all();
        }
    }
public static function getLanguages($active = true, $asArray = false)
    {
        if ($active) {
            return self::find()->where(['status' => static::STATUS_ACTIVE])->asArray($asArray)->all();
        } else {
            return self::find()->asArray($asArray)->all();
        }
    }
public static function getLanguages ( $ active = true , $ asArray = false ) { if ( $ active ) { return self :: find ( ) -> where ( [ 'status' => static :: STATUS_ACTIVE ] ) -> asArray ( $ asArray ) -> all ( ) ; } else { return self :: find ( ) -> asArray ( $ asArray ) -> all ( ) ; } }
Returns language objects.

@param bool $active True/False according to the status of the language.
@param bool $asArray Return the languages as language object or as 'flat' array

@return Language|array

@deprecated since version 1.5.2
Returns language objects .