PHP 클래스 JeroenDesloovere\VCard\VCardParser

This class is heavily based on the Zendvcard project (seemingly abandoned), which is licensed under the Apache 2.0 license. More information can be found at https://code.google.com/archive/p/zendvcard/
저자: Thomas Schaaf ([email protected])
저자: ruzicka.jan
저자: Wouter Admiraal ([email protected])
상속: implements Iterato\Iterator
파일 보기 프로젝트 열기: jeroendesloovere/vcard 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$content string The raw VCard content.
$position integer The iterator position.
$vcardObjects array The VCard data objects.

공개 메소드들

메소드 설명
__construct ( $content )
current ( )
getCardAtIndex ( integer $i ) : stdClass Fetch the imported VCard at the specified index.
getCards ( ) : array Fetch all the imported VCards.
key ( )
next ( )
parseFromFile ( string $filename ) : JeroenDesloovere\VCard\VCardParser Helper function to parse a file directly.
rewind ( )
valid ( )

보호된 메소드들

메소드 설명
parse ( ) Start the parsing process.
parseAddress ( $value )
parseBirthday ( $value )
parseName ( $value )
unescape ( string $text ) : string Unescape newline characters according to RFC2425 section 5.8.4.

메소드 상세

__construct() 공개 메소드

public __construct ( $content )

current() 공개 메소드

public current ( )

getCardAtIndex() 공개 메소드

Fetch the imported VCard at the specified index.
public getCardAtIndex ( integer $i ) : stdClass
$i integer
리턴 stdClass The card data object.

getCards() 공개 메소드

Fetch all the imported VCards.
public getCards ( ) : array
리턴 array A list of VCard card data objects.

key() 공개 메소드

public key ( )

next() 공개 메소드

public next ( )

parse() 보호된 메소드

This method will populate the data object.
protected parse ( )

parseAddress() 보호된 메소드

protected parseAddress ( $value )

parseBirthday() 보호된 메소드

protected parseBirthday ( $value )

parseFromFile() 공개 정적인 메소드

Helper function to parse a file directly.
public static parseFromFile ( string $filename ) : JeroenDesloovere\VCard\VCardParser
$filename string
리턴 JeroenDesloovere\VCard\VCardParser

parseName() 보호된 메소드

protected parseName ( $value )

rewind() 공개 메소드

public rewind ( )

unescape() 보호된 메소드

This function will replace escaped line breaks with PHP_EOL.
protected unescape ( string $text ) : string
$text string
리턴 string

valid() 공개 메소드

public valid ( )

프로퍼티 상세

$content 보호되어 있는 프로퍼티

The raw VCard content.
protected string $content
리턴 string

$position 보호되어 있는 프로퍼티

The iterator position.
protected int $position
리턴 integer

$vcardObjects 보호되어 있는 프로퍼티

The VCard data objects.
protected array $vcardObjects
리턴 array