Json
Json Parser.
This parser parses both the jCal and jCard formats.
- Full name:
\Sabre\VObject\Parser\Json
- Parent class:
\Sabre\VObject\Parser\Parser
Properties
input
The input data.
root
Root component.
Methods
parse
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.
Parameters:
Parameter | Type | Description |
---|---|---|
$input |
resource|string|array|null | |
$options |
int |
parseComponent
Parses a component.
Parameters:
Parameter | Type | Description |
---|---|---|
$jComp |
array |
parseProperty
Parses properties.
Parameters:
Parameter | Type | Description |
---|---|---|
$jProp |
array |
setInput
Sets the input data.
Parameters:
Parameter | Type | Description |
---|---|---|
$input |
resource|string|array |
Inherited methods
__construct
Creates the parser.
Optionally, it's possible to parse the input stream here.
Parameters:
Parameter | Type | Description |
---|---|---|
$input |
mixed | |
$options |
int | any parser options (OPTION constants) |
parse
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.
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$input |
mixed | |
$options |
int |
setInput
Sets the input data.
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$input |
mixed |
Automatically generated on 2025-03-18