-
Notifications
You must be signed in to change notification settings - Fork 126
Sabre VObject Reader
Evert Pot edited this page Sep 1, 2014
·
4 revisions
iCalendar/vCard/jCal/jCard reader object.
This object provides a few (static) convenience methods to quickly access the parsers.
- Class name: Reader
- Namespace: Sabre\VObject
const OPTION_FORGIVING = 1
const OPTION_IGNORE_INVALID_LINES = 2
\Sabre\VObject\Document Sabre\VObject\Reader::read(string|resource $data, integer $options)
Parses a vCard or iCalendar object, and returns the top component.
The options argument is a bitfield. Pass any of the OPTIONS constant to alter the parsers' behaviour.
You can either supply a string, or a readable stream for input.
- Visibility: public
- This method is static.
- $data string|resource
- $options integer
\Sabre\VObject\Node Sabre\VObject\Reader::readJson(string|resource|array $data, integer $options)
Parses a jCard or jCal object, and returns the top component.
The options argument is a bitfield. Pass any of the OPTIONS constant to alter the parsers' behaviour.
You can either a string, a readable stream, or an array for it's input. Specifying the array is useful if json_decode was already called on the input.
- Visibility: public
- This method is static.
- $data string|resource|array
- $options integer