From f86b5fdf8e8ff6374c64c62792ac73bd787dc765 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 13 Apr 2011 17:32:53 +0200 Subject: Superordinated Group ist immer die aktuelle Gruppe --- library/Pbs/Graph.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'library') diff --git a/library/Pbs/Graph.php b/library/Pbs/Graph.php index e7ebc55..e42b9d4 100644 --- a/library/Pbs/Graph.php +++ b/library/Pbs/Graph.php @@ -15,6 +15,9 @@ class Pbs_Graph{ $db = $this->db; + $path = "../resources/groupgraphs/"; + @mkdir($path ,0777, true); + $this->graphstring = 'digraph groups { size="5,5"; pad=0.1; @@ -25,6 +28,13 @@ class Pbs_Graph{ $this->getParentGroups($groupID); $this->getChildGroups($groupID); $this->graphstring .= '}'; + + // for debugging + # $fp = fopen($path.'thisgraph.dot', "w"); + # fputs ($fp, $this->graphstring); + # fclose ($fp); + + $this->graphstring = str_replace(array("\t","\n"),"",$this->graphstring); $this->graphstring = str_replace('"','\"',$this->graphstring); -- cgit v1.2.3-55-g7522