A base class for document parsers
Source for this file: /Document/src/interfaces/parser.php
Version: | //autogen// |
Child Class | Description |
---|---|
ezcDocumentWikiParser | Parser for wiki documents. |
ezcDocumentBBCodeParser | Parser for bbcode documents. |
ezcDocumentRstParser | Parser for RST documents |
protected ezcDocumentParserOptions |
$options
XML document base options. |
protected array |
$properties
= array(
Additional parser properties. |
public ezcDocumentParser |
__construct(
[ $options
= null] )
Construct new document |
public array |
getErrors(
)
Return list of errors occured during visiting the document. |
public void |
triggerError(
$level
, $message
, [ $file
= null] , [ $line
= null] , [ $position
= null] )
Trigger parser error |
Construct new document
Name | Type | Description |
---|---|---|
$options |
ezcDocumentParserOptions |
Method | Description |
---|---|
ezcDocumentRstParser::__construct() |
Construct new document |
Return list of errors occured during visiting the document.
May be an empty array, if on errors occured, or a list of ezcDocumentVisitException objects.
Method | Description |
---|---|
ezcDocumentErrorReporting::getErrors() |
Return list of errors occured during visiting the document. |
Trigger parser error
Emit a parser error and handle it dependiing on the current error reporting settings.
Name | Type | Description |
---|---|---|
$level |
int | |
$message |
string | |
$file |
string | |
$line |
int | |
$position |
int |
Method | Description |
---|---|
ezcDocumentErrorReporting::triggerError() |
Trigger parser error. |