original_string: static public function createFromStrings( eZContentObjectAttribute $attribute, $idString, $keywordString, $parentString, $localeString )
      {
          $idArray = explode( '|#', $idString );
          $keywordArray = explode( '|#', $keywordString );
          $parentArray = explode( '|#', $parentString );
          $localeArray = explode( '|#', $localeString );
  
          $wordArray = array();
          foreach ( array_keys( $idArray ) as $key )
          {
              $wordArray[] = trim( $idArray[$key] ) . "|#" . trim( $keywordArray[$key] ) . "|#" . trim( $parentArray[$key] ) . "|#" . trim( $localeArray[$key] );
          }
  
          $idArray = array();
          $keywordArray = array();
          $parentArray = array();
          $localeArray = array();
  
          $db = eZDB::instance();
  
          $wordArray = array_unique( $wordArray );
          foreach ( $wordArray as $wordKey )
          {
              $word = explode( '|#', $wordKey );
              if ( $word[0] != '' )
              {
                  $idArray[] = (int) $word[0];
                  $keywordArray[] = trim( $word[1] );
                  $parentArray[] = (int) $word[2];
                  $localeArray[] = trim( $word[3] );
              }
          }
  
          return new self( $attribute, $idArray, $keywordArray, $parentArray, $localeArray );
      }
code: static public function createFromStrings( eZContentObjectAttribute $attribute, $idString, $keywordString, $parentString, $localeString )
      {
          $idArray = explode( '|#', $idString );
          $keywordArray = explode( '|#', $keywordString );
          $parentArray = explode( '|#', $parentString );
          $localeArray = explode( '|#', $localeString );
  
          $wordArray = array();
          foreach ( array_keys( $idArray ) as $key )
          {
              $wordArray[] = trim( $idArray[$key] ) . "|#" . trim( $keywordArray[$key] ) . "|#" . trim( $parentArray[$key] ) . "|#" . trim( $localeArray[$key] );
          }
  
          $idArray = array();
          $keywordArray = array();
          $parentArray = array();
          $localeArray = array();
  
          $db = eZDB::instance();
  
          $wordArray = array_unique( $wordArray );
          foreach ( $wordArray as $wordKey )
          {
              $word = explode( '|#', $wordKey );
              if ( $word[0] != '' )
              {
                  $idArray[] = (int) $word[0];
                  $keywordArray[] = trim( $word[1] );
                  $parentArray[] = (int) $word[2];
                  $localeArray[] = trim( $word[3] );
              }
          }
  
          return new self( $attribute, $idArray, $keywordArray, $parentArray, $localeArray );
      }
code_tokens: static public function createFromStrings ( eZContentObjectAttribute $ attribute , $ idString , $ keywordString , $ parentString , $ localeString ) { $ idArray = explode ( '|#' , $ idString ) ; $ keywordArray = explode ( '|#' , $ keywordString ) ; $ parentArray = explode ( '|#' , $ parentString ) ; $ localeArray = explode ( '|#' , $ localeString ) ; $ wordArray = array ( ) ; foreach ( array_keys ( $ idArray ) as $ key ) { $ wordArray [ ] = trim ( $ idArray [ $ key ] ) . "|#" . trim ( $ keywordArray [ $ key ] ) . "|#" . trim ( $ parentArray [ $ key ] ) . "|#" . trim ( $ localeArray [ $ key ] ) ; } $ idArray = array ( ) ; $ keywordArray = array ( ) ; $ parentArray = array ( ) ; $ localeArray = array ( ) ; $ db = eZDB :: instance ( ) ; $ wordArray = array_unique ( $ wordArray ) ; foreach ( $ wordArray as $ wordKey ) { $ word = explode ( '|#' , $ wordKey ) ; if ( $ word [ 0 ] != '' ) { $ idArray [ ] = ( int ) $ word [ 0 ] ; $ keywordArray [ ] = trim ( $ word [ 1 ] ) ; $ parentArray [ ] = ( int ) $ word [ 2 ] ; $ localeArray [ ] = trim ( $ word [ 3 ] ) ; } } return new self ( $ attribute , $ idArray , $ keywordArray , $ parentArray , $ localeArray ) ; }
docstring: Initializes the tags
  
  @static
  
  @param eZContentObjectAttribute $attribute
  @param string $idString
  @param string $keywordString
  @param string $parentString
  @param string $localeString
  
  @return eZTags The newly created eZTags object
docstring_tokens: Initializes the tags