src/FS/File/VCard/Parser.php
public static function parseInto( $string, ADT_VCard $vcard, $charsetIn = NULL, $charsetOut = NULL )
	{
		if( !$string )
			throw new InvalidArgumentException( 'String is empty ' );
		if( $charsetIn && $charsetOut && function_exists( 'iconv' ) )
		{
			$string	= Alg_Text_EncodingConverter::convert( $string, $charsetIn, $charsetOut );
		}

		$lines	= explode( "\n", $string );
		foreach( $lines as $line )
			self::parseLine( $vcard, $line );
		return $vcard;
	}
public static function parseInto( $string, ADT_VCard $vcard, $charsetIn = NULL, $charsetOut = NULL )
	{
		if( !$string )
			throw new InvalidArgumentException( 'String is empty ' );
		if( $charsetIn && $charsetOut && function_exists( 'iconv' ) )
		{
			$string	= Alg_Text_EncodingConverter::convert( $string, $charsetIn, $charsetOut );
		}

		$lines	= explode( "\n", $string );
		foreach( $lines as $line )
			self::parseLine( $vcard, $line );
		return $vcard;
	}
public static function parseInto ( $ string , ADT_VCard $ vcard , $ charsetIn = NULL , $ charsetOut = NULL ) { if ( ! $ string ) throw new InvalidArgumentException ( 'String is empty ' ) ; if ( $ charsetIn && $ charsetOut && function_exists ( 'iconv' ) ) { $ string = Alg_Text_EncodingConverter :: convert ( $ string , $ charsetIn , $ charsetOut ) ; } $ lines = explode ( "\n" , $ string ) ; foreach ( $ lines as $ line ) self :: parseLine ( $ vcard , $ line ) ; return $ vcard ; }
Parses vCard String to an given vCard Object and converts between Charsets.
@access		public
@static
@param		string		$string			VCard String
@param		ADT_VCard	$vcard			VCard Data Object
@param		string		$charsetIn		Charset to convert from
@param		string		$charsetOut		Charset to convert to
@return		string
Parses vCard String to an given vCard Object and converts between Charsets .