original_string: static public function fetchTag( $tagID, $language = false )
      {
          if ( $language )
          {
              if ( !is_array( $language ) )
                  $language = array( $language );
              eZContentLanguage::setPrioritizedLanguages( $language );
          }
  
          $result = false;
          if ( is_numeric( $tagID ) )
          {
              $result = eZTagsObject::fetch( $tagID );
          }
          else if ( is_array( $tagID ) && !empty( $tagID ) )
          {
              $result = eZTagsObject::fetchList( array( 'id' => array( $tagID ) ) );
          }
  
          if ( $language )
              eZContentLanguage::clearPrioritizedLanguages();
  
          if ( $result instanceof eZTagsObject || ( is_array( $result ) && !empty( $result ) ) )
              return array( 'result' => $result );
  
          return array( 'result' => false );
      }
code: static public function fetchTag( $tagID, $language = false )
      {
          if ( $language )
          {
              if ( !is_array( $language ) )
                  $language = array( $language );
              eZContentLanguage::setPrioritizedLanguages( $language );
          }
  
          $result = false;
          if ( is_numeric( $tagID ) )
          {
              $result = eZTagsObject::fetch( $tagID );
          }
          else if ( is_array( $tagID ) && !empty( $tagID ) )
          {
              $result = eZTagsObject::fetchList( array( 'id' => array( $tagID ) ) );
          }
  
          if ( $language )
              eZContentLanguage::clearPrioritizedLanguages();
  
          if ( $result instanceof eZTagsObject || ( is_array( $result ) && !empty( $result ) ) )
              return array( 'result' => $result );
  
          return array( 'result' => false );
      }
code_tokens: static public function fetchTag ( $ tagID , $ language = false ) { if ( $ language ) { if ( ! is_array ( $ language ) ) $ language = array ( $ language ) ; eZContentLanguage :: setPrioritizedLanguages ( $ language ) ; } $ result = false ; if ( is_numeric ( $ tagID ) ) { $ result = eZTagsObject :: fetch ( $ tagID ) ; } else if ( is_array ( $ tagID ) && ! empty ( $ tagID ) ) { $ result = eZTagsObject :: fetchList ( array ( 'id' => array ( $ tagID ) ) ) ; } if ( $ language ) eZContentLanguage :: clearPrioritizedLanguages ( ) ; if ( $ result instanceof eZTagsObject || ( is_array ( $ result ) && ! empty ( $ result ) ) ) return array ( 'result' => $ result ) ; return array ( 'result' => false ) ; }
docstring: Fetches eZTagsObject object for the provided tag ID
  
  @static
  
  @param int $tagID
  @param mixed $language
  
  @return array
docstring_tokens: Fetches eZTagsObject object for the provided tag ID