Document: ezcDocumentBBCodeVisitor
[ ]
[ Conversion ] [ Styles ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentBBCodeVisitor
|
Abstract visitor base for BBCode documents represented by the parser AST. [
source]
Implemented Interfaces
Descendents
Member Variables
Method Summary
|
public void |
__construct(
$document, $path )
Create visitor from BBCode document handler. |
|
public array |
getErrors(
)
Return list of errors occured during visiting the document. |
|
public void |
triggerError(
$level, $message, [$file = null], [$line = null], [$position = null] )
Trigger visitor error |
|
public mixed |
visit(
$ast )
Docarate BBCode AST |
|
protected void |
visitText(
$root, $node )
Visit text node |
Methods
__construct
Create visitor from BBCode document handler.
Parameters
getErrors
array getErrors(
)
Return list of errors occured during visiting the document.
May be an empty array, if on errors occured, or a list of ezcDocumentVisitException objects.
triggerError
void triggerError(
int
$level, string
$message, [string
$file = null], [int
$line = null], [int
$position = null] )
Trigger visitor error
Emit a vistitor error, and convert it to an exception depending on the error reporting settings.
Parameters
| Name |
Type |
Description |
$level |
int |
|
$message |
string |
|
$file |
string |
|
$line |
int |
|
$position |
int |
|
visit
Docarate BBCode AST
Visit the BBCode abstract syntax tree.
Parameters
Redefined in descendants as
visitText
Visit text node
Parameters
Last updated: Tue, 23 Mar 2010