Property | Type | Description | |
---|---|---|---|
$_altCount | integer | Current value of the alt tag count. | |
$_dropline | array | Drop line cache. | |
$_images | array | Images array. | |
$_node_pos | array | Node position list. |
Method | Description | |
---|---|---|
__construct ( string $name, array $params = [] ) | Constructor. | |
getTree ( boolean $static = false ) : string | Returns the tree. | |
setHeader ( array $header ) | Adds column headers to the tree table. |
Method | Description | |
---|---|---|
_addColumn ( $column ) | ||
_buildHeader ( ) : string | Returns the HTML code for a header row, if necessary. | |
_buildLine ( string $node_id ) : string | Function to create a single line of the tree. | |
_buildTree ( string $node_id ) : string | Recursive function to walk through the tree array and build the output. | |
_generateImage ( string $src, string $class = '', string $alt = null ) : string | Generate the icon image. | |
_generateUrlTag ( string $node_id ) : string | Generate a link URL. | |
_setLabel ( string $node_id ) : string | Sets the label on the tree line. | |
_setNodeIcon ( string $node_id ) : string | Sets the icon for the node. | |
_setNodeToggle ( string $node_id ) : string | Sets the node toggle on the tree line. |
public __construct ( string $name, array $params = [] ) | ||
$name | string | The name of this tree instance. |
$params | array | Additional parameters:
alternate - (boolean) Alternate shading in the table? DEFAULT: false class - (string) The class to use for the table. DEFAULT: '' hideHeaders - (boolean) Don't render any HTML for the header row, just use the widths. DEFAULT: false lines - (boolean) Show tree lines? DEFAULT: true lines_base - (boolean) Show tree lines for the base level? Requires 'lines' to be true also. DEFAULT: false multiline - (boolean) Do the node labels contain linebreaks? DEFAULT: false |
protected _buildHeader ( ) : string | ||
return | string | The HTML code of the header row or an empty string. |
protected _buildLine ( string $node_id ) : string | ||
$node_id | string | The Node ID. |
return | string | The rendered line. |
protected _buildTree ( string $node_id ) : string | ||
$node_id | string | The Node ID. |
return | string | The tree rendering. |
protected _generateUrlTag ( string $node_id ) : string | ||
$node_id | string | The node ID. |
return | string | The link tag. |
protected _setNodeIcon ( string $node_id ) : string | ||
$node_id | string | The Node ID. |
return | string | The node icon for the tree line. |
protected _setNodeToggle ( string $node_id ) : string | ||
$node_id | string | The Node ID. |
return | string | The node toggle for the tree line. |
protected int $_altCount | ||
return | integer |