\Silvergraph
Class Silvergraph
Generates data model graphs from SilverSripe DataObjects, displaying database fields, relations and ancestry
Refer to README.md for usage guide and requirements
Synopsis
class Silvergraph
extends CliController
{
- // members
- private static array $allowed_actions = ;
- // methods
- private void paramDefault()
- public String dot()
- public static void relationObject()
- public static void formatDataFields()
- public void png()
- public void svg()
- private void execute()
Hierarchy
Extends
- SilverStripe\Control\CliController
Members
private
- $allowed_actions
Methods
private
- execute() — Execute the dot command wih $parameters, passing in $input to stdin. Returns stdout as $output NOTE: Requires graphviz & dot to be installed locally (eg; apt-get install graphviz)
- paramDefault()
public
- dot() — Generates a GraphViz dot template
- formatDataFields()
- png() — Generate a png file from the dot template
- relationObject()
- svg() — Generate a svg file from the dot template