-
Notifications
You must be signed in to change notification settings - Fork 125
Sabre VObject Parser Parser
Evert Pot edited this page Sep 1, 2014
·
3 revisions
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
const OPTION_FORGIVING = 1
const OPTION_IGNORE_INVALID_LINES = 2
protected integer $options
Bitmask of parser options
- Visibility: protected
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
- $input mixed
- $options integer - <p>Any parser options (OPTION constants).</p>
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.
- $input mixed
- $options integer|null
void Sabre\VObject\Parser\Parser::setInput(mixed $input)
Sets the input data
- Visibility: public
- This method is abstract.
- $input mixed