original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Updates language mask of the tag based on current translations or provided language mask
  
  @param mixed $mask
docstring_tokens: Updates language mask of the tag based on current translations or provided language mask