-
Notifications
You must be signed in to change notification settings - Fork 130
Sabre VObject Parser Json
Evert Pot edited this page Sep 1, 2014
·
3 revisions
Json Parser.
This parser parses both the jCal and jCard formats.
- Class name: Json
- Namespace: Sabre\VObject\Parser
- Parent class: Sabre\VObject\Parser\Parser
const OPTION_FORGIVING = 1
const OPTION_IGNORE_INVALID_LINES = 2
protected array $input
The input data
- Visibility: protected
protected \Sabre\VObject\Parser\Document $root
Root component
- Visibility: protected
protected integer $options
Bitmask of parser options
- Visibility: protected
array Sabre\VObject\Parser\Parser::parse(mixed $input, integer|null $options)
This method starts the parsing process.
If the input was not supplied during construction, it's possible to pass it here instead.
If either input or options are not supplied, the defaults will be used.
- Visibility: public
- This method is abstract.
- This method is defined by Sabre\VObject\Parser\Parser
- $input mixed
- $options integer|null
\Sabre\VObject\Component Sabre\VObject\Parser\Json::parseComponent(array $jComp)
Parses a component
- Visibility: public
- $jComp array
\Sabre\VObject\Property Sabre\VObject\Parser\Json::parseProperty(array $jProp)
Parses properties.
- Visibility: public
- $jProp array
void Sabre\VObject\Parser\Parser::setInput(mixed $input)
Sets the input data
- Visibility: public
- This method is abstract.
- This method is defined by Sabre\VObject\Parser\Parser
- $input mixed
void Sabre\VObject\Parser\Parser::__construct(mixed $input, integer $options)
Creates the parser.
Optionally, it's possible to parse the input stream here.
- Visibility: public
- This method is defined by Sabre\VObject\Parser\Parser
- $input mixed
- $options integer - <p>Any parser options (OPTION constants).</p>