Skip to content

VCard

Splitter.

This class is responsible for splitting up VCard objects.

It is assumed that the input stream contains 1 or more VCARD objects. This class checks for BEGIN:VCARD and END:VCARD and parses each encountered component individually.

Properties

input

File handle.

protected resource $input

parser

Persistent parser.

protected \Sabre\VObject\Parser\MimeDir $parser

Methods

__construct

Constructor.

public __construct(resource $input, int $options): mixed

The splitter should receive an readable file stream as its input.

Parameters:

Parameter Type Description
$input resource
$options int parser options, see the OPTIONS constants

getNext

Every time getNext() is called, a new object will be parsed, until we hit the end of the stream.

public getNext(): \Sabre\VObject\Component|null

When the end is reached, null will be returned.



Automatically generated on 2025-03-18