Skip to content

Sabre VObject Parser Json

Evert Pot edited this page Sep 1, 2014 · 3 revisions

Sabre\VObject\Parser\Json

Json Parser.

This parser parses both the jCal and jCard formats.

Constants

OPTION_FORGIVING

const OPTION_FORGIVING = 1

OPTION_IGNORE_INVALID_LINES

const OPTION_IGNORE_INVALID_LINES = 2

Properties

$input

protected array $input

The input data

  • Visibility: protected

$root

protected \Sabre\VObject\Parser\Document $root

Root component

  • Visibility: protected

$options

protected integer $options

Bitmask of parser options

  • Visibility: protected

Methods

parse

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.

Arguments

  • $input mixed
  • $options integer|null

parseComponent

\Sabre\VObject\Component Sabre\VObject\Parser\Json::parseComponent(array $jComp)

Parses a component

  • Visibility: public

Arguments

  • $jComp array

parseProperty

\Sabre\VObject\Property Sabre\VObject\Parser\Json::parseProperty(array $jProp)

Parses properties.

  • Visibility: public

Arguments

  • $jProp array

setInput

void Sabre\VObject\Parser\Parser::setInput(mixed $input)

Sets the input data

Arguments

  • $input mixed

__construct

void Sabre\VObject\Parser\Parser::__construct(mixed $input, integer $options)

Creates the parser.

Optionally, it's possible to parse the input stream here.

Arguments

  • $input mixed
  • $options integer - <p>Any parser options (OPTION constants).</p>
Clone this wiki locally