kernel/classes/ezcontentlanguage.php
static function topPriorityLanguageByMask( $mask )
    {
        $languages = eZContentLanguage::prioritizedLanguages();
        foreach ( $languages as $language )
        {
            if ( ( (int) $language->attribute( 'id' ) & (int) $mask ) > 0 )
            {
                return $language;
            }
        }
        return false;
    }
static function topPriorityLanguageByMask( $mask )
    {
        $languages = eZContentLanguage::prioritizedLanguages();
        foreach ( $languages as $language )
        {
            if ( ( (int) $language->attribute( 'id' ) & (int) $mask ) > 0 )
            {
                return $language;
            }
        }
        return false;
    }
static function topPriorityLanguageByMask ( $ mask ) { $ languages = eZContentLanguage :: prioritizedLanguages ( ) ; foreach ( $ languages as $ language ) { if ( ( ( int ) $ language -> attribute ( 'id' ) & ( int ) $ mask ) > 0 ) { return $ language ; } } return false ; }
Returns the most prioritized language which has set the corresponding bit in the mask.

\param mask Bitmap specifying which languages should be checked.
\return eZContentLanguage object of the most prioritized language which have set the corresponding bit in $mask.
Returns the most prioritized language which has set the corresponding bit in the mask .