Documentation

Graphviz extends AbstractVisitor
in package

Create a Graphviz output of a Schema.

Tags
deprecated

Table of Contents

Properties

$output  : string

Methods

acceptColumn()  : void
acceptForeignKey()  : void
acceptIndex()  : void
acceptNamespace()  : void
Accepts a schema namespace name.
acceptSchema()  : void
acceptSequence()  : void
acceptTable()  : void
getOutput()  : string
Get Graphviz Output
write()  : void
Writes dot language output to a file. This should usually be a *.dot file.
createNode()  : string
createNodeRelation()  : string
createTableLabel()  : string

Properties

Methods

acceptNamespace()

Accepts a schema namespace name.

public acceptNamespace(mixed $namespaceName) : void
Parameters
$namespaceName : mixed

The schema namespace name to accept.

getOutput()

Get Graphviz Output

public getOutput() : string
Return values
string

write()

Writes dot language output to a file. This should usually be a *.dot file.

public write(string $filename) : void

You have to convert the output into a viewable format. For example use "neato" on linux systems and execute:

neato -Tpng -o er.png er.dot

Parameters
$filename : string

createNode()

private createNode(string $name, array<string|int, string> $options) : string
Parameters
$name : string
$options : array<string|int, string>
Return values
string

createNodeRelation()

private createNodeRelation(string $node1, string $node2, array<string|int, string> $options) : string
Parameters
$node1 : string
$node2 : string
$options : array<string|int, string>
Return values
string

createTableLabel()

private createTableLabel(Table $table) : string
Parameters
$table : Table
Return values
string

        
On this page

Search results