ePages 6.17.17 - DE_EPAGES/Diagnostics/API/DrawDependencies.pm

Package DE_EPAGES::Diagnostics::API::DrawDependencies

Styles and Draws the dependency Graph

Functions

makeGraph
new

makeGraph

Returns the final styled svg image code.

Syntax
$Graph = $DrawDependencies->makeGraph();
Return
$Graph (String)
Graph as svg image code

new

Constructor of the DrawDependencies class.

Syntax
$DrawDependencies = DrawDependencies->new( $Path, $WildCards, $HistoryString, $History, $ShowAll, $ShowUnnecessaryDeps );
Example
$DrawDependencies = DrawDependencies->new( 'Cartridges/DE_EPAGES/', ['SEO'], 'SEO', [ 'SEO' ], 0, 0 );
Input
$Path (string)
path to the cartridge directory
$WildCards (ref.array)
refenrence to an array, which exists of the current history elements
$HistoryString (string)
serialized string of all cartridges in the current history (clicked in the graph)
$History (ref.array)
refenrence to an array, which contains the current history elements
$ShowAll (integer)
if entire graph shows all dependencies ($ShowAll = 1) or only direct dependencies (0)
$ShowUnnecessaryDeps (integer)
calculate unnecessary (redundant) dependencies and hides them
Return
$DrawDependencies (DE_EPAGES::Diagnostics::API::DrawDependencies)
new DrawDependencies object