kernel/classes/ezcontentlanguage.php
static function jsArrayByMask( $mask )
    {
        $localList = array();
        $languages = eZContentLanguage::prioritizedLanguagesByMask( $mask );
        foreach ( $languages as $key => $language )
        {
            $localList[] = array( 'locale' => $language->attribute( 'locale' ),
                                  'name'   => $language->attribute( 'name' ) );
        }

        if ( $localList )
        {
            return json_encode( $localList );
        }
        else
        {
            return false;
        }
    }
static function jsArrayByMask( $mask )
    {
        $localList = array();
        $languages = eZContentLanguage::prioritizedLanguagesByMask( $mask );
        foreach ( $languages as $key => $language )
        {
            $localList[] = array( 'locale' => $language->attribute( 'locale' ),
                                  'name'   => $language->attribute( 'name' ) );
        }

        if ( $localList )
        {
            return json_encode( $localList );
        }
        else
        {
            return false;
        }
    }
static function jsArrayByMask ( $ mask ) { $ localList = array ( ) ; $ languages = eZContentLanguage :: prioritizedLanguagesByMask ( $ mask ) ; foreach ( $ languages as $ key => $ language ) { $ localList [ ] = array ( 'locale' => $ language -> attribute ( 'locale' ) , 'name' => $ language -> attribute ( 'name' ) ) ; } if ( $ localList ) { return json_encode ( $ localList ) ; } else { return false ; } }
Returns the Javascript array with locale codes and names of the languages which have set the corresponding
bit in specified mask.

\param mask Bitmap mask specifying which languages should be considered.
\return JavaScript array described above.
Returns the Javascript array with locale codes and names of the languages which have set the corresponding bit in specified mask .