Skip to content

Sabre VObject Parser Parser

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

Sabre\VObject\Parser\Parser

Abstract parser.

This class serves as a base-class for the different parsers.

  • Class name: Parser
  • Namespace: Sabre\VObject\Parser
  • This is an abstract class

Constants

OPTION_FORGIVING

const OPTION_FORGIVING = 1

OPTION_IGNORE_INVALID_LINES

const OPTION_IGNORE_INVALID_LINES = 2

Properties

$options

protected integer $options

Bitmask of parser options

  • Visibility: protected

Methods

__construct

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

Arguments

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

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.

  • Visibility: public
  • This method is abstract.

Arguments

  • $input mixed
  • $options integer|null

setInput

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

Sets the input data

  • Visibility: public
  • This method is abstract.

Arguments

  • $input mixed
Clone this wiki locally