Property | Type | Description | |
---|---|---|---|
$content | string | The raw VCard content. | |
$position | integer | The iterator position. | |
$vcardObjects | array | The VCard data objects. |
Method | Description | |
---|---|---|
__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 ( ) |
Method | Description | |
---|---|---|
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. |
public getCardAtIndex ( integer $i ) : stdClass | ||
$i | integer | |
return | stdClass | The card data object. |
public static parseFromFile ( string $filename ) : JeroenDesloovere\VCard\VCardParser | ||
$filename | string | |
return | JeroenDesloovere\VCard\VCardParser |
protected array $vcardObjects | ||
return | array |