Skip to content

Sabre VObject Splitter VCard

Evert Pot edited this page Jun 6, 2013 · 5 revisions

Sabre\VObject\Splitter\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

protected resource $input

File handle

  • Visibility: protected

$parser

protected \Sabre\VObject\Parser\MimeDir $parser

Persistent parser

  • Visibility: protected

Methods

__construct

mixed Sabre\VObject\Splitter\VCard::__construct(resource $input, int $options)

Constructor

The splitter should receive an readable file stream as it's input.

  • Visibility: public

Arguments

  • $input resource
  • $options int - Parser options, see the OPTIONS constants.

getNext

\Sabre\VObject\Splitter\Sabre\VObject\Component|null Sabre\VObject\Splitter\VCard::getNext()

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

When the end is reached, null will be returned.

  • Visibility: public

Clone this wiki locally