-
Notifications
You must be signed in to change notification settings - Fork 130
Sabre VObject Splitter VCard
Evert Pot edited this page Sep 1, 2014
·
5 revisions
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.
- Class name: VCard
- Namespace: Sabre\VObject\Splitter
- This class implements: Sabre\VObject\Splitter\SplitterInterface
protected resource $input
File handle
- Visibility: protected
protected \Sabre\VObject\Parser\MimeDir $parser
Persistent parser
- Visibility: protected
mixed Sabre\VObject\Splitter\SplitterInterface::__construct(resource $input)
Constructor
The splitter should receive an readable file stream as it's input.
- Visibility: public
- This method is defined by Sabre\VObject\Splitter\SplitterInterface
- $input resource
\Sabre\VObject\Splitter\Sabre\VObject\Component|null Sabre\VObject\Splitter\SplitterInterface::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
- This method is defined by Sabre\VObject\Splitter\SplitterInterface