An implementation of the ezcTreeVisitor interface that generates a plain text representation of a tree structure.
Shows (something like):
Source for this file: /Tree/src/visitors/plain_text.php
Version: | //autogentag// |
SYMBOL_ASCII
= 1
|
Represents the ASCII symbol set. |
SYMBOL_UTF8
= 2
|
Represents the UTF-8 symbol set. |
protected array(string=>array(string)) |
$edges
= array()
Holds all the edges of the graph. |
protected string |
$root
= null
Holds the root ID |
public ezcTreeVisitorPlainText |
__construct(
[ $symbolCharset
= self::SYMBOL_UTF8] )
Constructs a new ezcTreeVisitorPlainText visualizer using $symbolCharset as character set. |
public bool |
visit(
$visitable
)
Visits the node and sets the the member variables according to the node type and contents. |
Constructs a new ezcTreeVisitorPlainText visualizer using $symbolCharset as character set.
This class only supports 'ascii' and 'utf-8' as character sets. Default is 'utf-8'.
Name | Type | Description |
---|---|---|
$symbolCharset |
int |
Visits the node and sets the the member variables according to the node type and contents.
Name | Type | Description |
---|---|---|
$visitable |
ezcTreeVisitable |
Method | Description |
---|---|
ezcTreeVisitor::visit() |
Visit the $visitable. |