ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Abstract parser. More...
Public Member Functions | |
__construct ($input=null, $options=0) | |
Creates the parser. More... | |
parse ($input=null, $options=0) | |
This method starts the parsing process. More... | |
setInput ($input) | |
Sets the input data. More... | |
Data Fields | |
const | OPTION_FORGIVING = 1 |
Turning on this option makes the parser more forgiving. More... | |
const | OPTION_IGNORE_INVALID_LINES = 2 |
If this option is turned on, any lines we cannot parse will be ignored by the reader. More... | |
Protected Attributes | |
$options | |
Abstract parser.
This class serves as a base-class for the different parsers.
Definition at line 14 of file Parser.php.
Sabre\VObject\Parser\Parser::__construct | ( | $input = null , |
|
$options = 0 |
|||
) |
Creates the parser.
Optionally, it's possible to parse the input stream here.
mixed | $input | |
int | $options | Any parser options (OPTION constants). |
Definition at line 48 of file Parser.php.
References Sabre\VObject\$input, Sabre\VObject\Parser\Parser\$options, Sabre\VObject\Parser\Parser\parse(), and Sabre\VObject\Parser\Parser\setInput().
|
abstract |
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.
mixed | $input | |
int | $options |
Referenced by Sabre\VObject\Parser\Parser\__construct().
|
abstract |
Sets the input data.
mixed | $input |
Referenced by Sabre\VObject\Parser\Parser\__construct().
|
protected |
Definition at line 36 of file Parser.php.
Referenced by Sabre\VObject\Parser\Parser\__construct(), Sabre\VObject\Parser\XML\__construct(), Sabre\VObject\Parser\Json\parse(), Sabre\VObject\Parser\MimeDir\parse(), and Sabre\VObject\Parser\XML\parse().
const Sabre\VObject\Parser\Parser::OPTION_FORGIVING = 1 |
Turning on this option makes the parser more forgiving.
In the case of the MimeDir parser, this means that the parser will accept slashes and underscores in property names, and it will also attempt to fix Microsoft vCard 2.1's broken line folding.
Definition at line 23 of file Parser.php.
const Sabre\VObject\Parser\Parser::OPTION_IGNORE_INVALID_LINES = 2 |
If this option is turned on, any lines we cannot parse will be ignored by the reader.
Definition at line 29 of file Parser.php.