original_string: static public function fetchTagsByKeyword( $keyword, $language = false )
      {
          if ( $language )
          {
              if ( !is_array( $language ) )
                  $language = array( $language );
              eZContentLanguage::setPrioritizedLanguages( $language );
          }
  
          if ( strpos( $keyword, '*' ) !== false )
          {
              $keyword = preg_replace(
                  array(
                      '#%#m',
                      '#(?<!\\\\)\\*#m',
                      '#(?<!\\\\)\\\\\\*#m',
                      '#\\\\\\\\#m'
                  ),
                  array(
                      '\\%',
                      '%',
                      '*',
                      '\\\\'
                  ),
                  $keyword
              );
  
              $keyword = array( 'like', $keyword );
          }
  
          $result = eZTagsObject::fetchByKeyword( $keyword );
  
          if ( $language )
              eZContentLanguage::clearPrioritizedLanguages();
  
          if ( is_array( $result ) && !empty( $result ) )
              return array( 'result' => $result );
  
          return array( 'result' => false );
      }
code: static public function fetchTagsByKeyword( $keyword, $language = false )
      {
          if ( $language )
          {
              if ( !is_array( $language ) )
                  $language = array( $language );
              eZContentLanguage::setPrioritizedLanguages( $language );
          }
  
          if ( strpos( $keyword, '*' ) !== false )
          {
              $keyword = preg_replace(
                  array(
                      '#%#m',
                      '#(?<!\\\\)\\*#m',
                      '#(?<!\\\\)\\\\\\*#m',
                      '#\\\\\\\\#m'
                  ),
                  array(
                      '\\%',
                      '%',
                      '*',
                      '\\\\'
                  ),
                  $keyword
              );
  
              $keyword = array( 'like', $keyword );
          }
  
          $result = eZTagsObject::fetchByKeyword( $keyword );
  
          if ( $language )
              eZContentLanguage::clearPrioritizedLanguages();
  
          if ( is_array( $result ) && !empty( $result ) )
              return array( 'result' => $result );
  
          return array( 'result' => false );
      }
code_tokens: static public function fetchTagsByKeyword ( $ keyword , $ language = false ) { if ( $ language ) { if ( ! is_array ( $ language ) ) $ language = array ( $ language ) ; eZContentLanguage :: setPrioritizedLanguages ( $ language ) ; } if ( strpos ( $ keyword , '*' ) !== false ) { $ keyword = preg_replace ( array ( '#%#m' , '#(?<!\\\\)\\*#m' , '#(?<!\\\\)\\\\\\*#m' , '#\\\\\\\\#m' ) , array ( '\\%' , '%' , '*' , '\\\\' ) , $ keyword ) ; $ keyword = array ( 'like' , $ keyword ) ; } $ result = eZTagsObject :: fetchByKeyword ( $ keyword ) ; if ( $ language ) eZContentLanguage :: clearPrioritizedLanguages ( ) ; if ( is_array ( $ result ) && ! empty ( $ result ) ) return array ( 'result' => $ result ) ; return array ( 'result' => false ) ; }
docstring: Fetches all tags named with provided keyword
  
  @static
  
  @param string $keyword
  @param mixed $language
  
  @return array
docstring_tokens: Fetches all tags named with provided keyword