kernel/classes/ezcontentlanguage.php
static function maskByLocale( $locales, $setZerothBit = false )
    {
        if ( !$locales )
        {
            return 0;
        }

        if ( !is_array( $locales ) )
        {
            $locales = array( $locales );
        }

        $mask = 0;
        if ( $setZerothBit )
        {
            $mask = 1;
        }

        foreach( $locales as $locale )
        {
            $language = eZContentLanguage::fetchByLocale( $locale );
            if ( $language )
            {
                $mask |= $language->attribute( 'id' );
            }
        }

        return (int) $mask;
    }
static function maskByLocale( $locales, $setZerothBit = false )
    {
        if ( !$locales )
        {
            return 0;
        }

        if ( !is_array( $locales ) )
        {
            $locales = array( $locales );
        }

        $mask = 0;
        if ( $setZerothBit )
        {
            $mask = 1;
        }

        foreach( $locales as $locale )
        {
            $language = eZContentLanguage::fetchByLocale( $locale );
            if ( $language )
            {
                $mask |= $language->attribute( 'id' );
            }
        }

        return (int) $mask;
    }
static function maskByLocale ( $ locales , $ setZerothBit = false ) { if ( ! $ locales ) { return 0 ; } if ( ! is_array ( $ locales ) ) { $ locales = array ( $ locales ) ; } $ mask = 0 ; if ( $ setZerothBit ) { $ mask = 1 ; } foreach ( $ locales as $ locale ) { $ language = eZContentLanguage :: fetchByLocale ( $ locale ) ; if ( $ language ) { $ mask |= $ language -> attribute ( 'id' ) ; } } return ( int ) $ mask ; }
Returns bitmap mask for the specified languages.

\param locales Array of strings or a string specifying locale codes of the languages, e. g. 'slk-SK' or array( 'eng-GB', 'nor-NO' )
\param setZerothBit Optional. Specifies if the 0-th bit of mask should be set. False by default.
\return Bitmap mask having set the corresponding bits for the specified languages.
Returns bitmap mask for the specified languages .