public function updateLanguageMask( $mask = false )
    {
        if ( $mask === false )
        {
            $locales = array();
            foreach ( $this->getTranslations() as $translation )
            {
                $locales[] = $translation->attribute( 'locale' );
            }

            $mask = eZContentLanguage::maskByLocale( $locales, $this->isAlwaysAvailable() );
        }

        $this->setAttribute( 'language_mask', $mask );
        $this->store();
    }
public function updateLanguageMask( $mask = false )
    {
        if ( $mask === false )
        {
            $locales = array();
            foreach ( $this->getTranslations() as $translation )
            {
                $locales[] = $translation->attribute( 'locale' );
            }

            $mask = eZContentLanguage::maskByLocale( $locales, $this->isAlwaysAvailable() );
        }

        $this->setAttribute( 'language_mask', $mask );
        $this->store();
    }
public function updateLanguageMask ( $ mask = false ) { if ( $ mask === false ) { $ locales = array ( ) ; foreach ( $ this -> getTranslations ( ) as $ translation ) { $ locales [ ] = $ translation -> attribute ( 'locale' ) ; } $ mask = eZContentLanguage :: maskByLocale ( $ locales , $ this -> isAlwaysAvailable ( ) ) ; } $ this -> setAttribute ( 'language_mask' , $ mask ) ; $ this -> store ( ) ; }
Updates language mask of the tag based on current translations or provided language mask

@param mixed $mask
Updates language mask of the tag based on current translations or provided language mask