DB_NestedSet
[ class tree: DB_NestedSet ] [ index: DB_NestedSet ] [ all elements ]

Class: DB_NestedSet_GraphViz

Source Location: /DB_NestedSet-1.4.1/NestedSet/GraphViz.php

Class Overview

DB_NestedSet_Output
   |
   --DB_NestedSet_GraphViz

A helper class to translate the data from a nested set table into a GraphViz diagram using PEAR::Image_GraphViz developped by Sebastian Bergmann.


Author(s):

Version:

  • $Revision: 155194 $

Methods


Inherited Variables

Inherited Methods

Class: DB_NestedSet_Output

DB_NestedSet_Output::factory()
Returns a output driver object
DB_NestedSet_Output::listbox_toHTML()
Returns the HTML for the listbox. This method can be used instead of printListbox() to use the menu system with a template system.
DB_NestedSet_Output::printListbox()
Print's a listbox representing the current tree Overriden by the driver class
DB_NestedSet_Output::printTree()
Print's the current tree using the output driver Overriden by the driver class
DB_NestedSet_Output::returnStructure()
DB_NestedSet_Output::setOptions()
Set's options for a specific output group (printTree, printListbox) This enables you to set specific options for each output method
DB_NestedSet_Output::tree_toHTML()
Returns the HTML for the DHTML-menu. This method can be used instead of printMenu() to use the menu system with a template system.

Class Details

[line 36]
A helper class to translate the data from a nested set table into a GraphViz diagram using PEAR::Image_GraphViz developped by Sebastian Bergmann.

Based on DB_NestedSet_TreeMenu to a very large extent.



[ Top ]


Method Detail

DB_NestedSet_GraphViz (Constructor)   [line 45]

DB_NestedSet_GraphViz DB_NestedSet_GraphViz( $params)


Parameters:

   $params     

[ Top ]

printTree   [line 143]

void printTree( [string $dot_command = null], [string $output_format = 'png'])

Outputs the graph as an image
  • Access: public

Overrides DB_NestedSet_Output::printTree() (Print's the current tree using the output driver Overriden by the driver class)

Parameters:

string   $dot_command     absolute path to the dot command
string   $output_format     output image format

[ Top ]

_createFromStructure   [line 61]

object An &_createFromStructure( $params)

Creates an Image_GraphViz graph based off of the results from getAllNodes() method

of the DB_NestedSet class. The needed parameters are: <li> 'structure' => the result from $nestedSet->getAllNodes(true) 'nodeLabel' => the text to show in the box reprenting the node </li>

  • Return: Image_GraphViz object
  • Access: public

Parameters:

   $params     

[ Top ]


Documentation generated on Sun, 25 Apr 2010 21:30:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.