summaryrefslogtreecommitdiffstats
path: root/library/Pbs/Graph.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Pbs/Graph.php')
-rw-r--r--library/Pbs/Graph.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/Pbs/Graph.php b/library/Pbs/Graph.php
index 4ab1f79..7823a4b 100644
--- a/library/Pbs/Graph.php
+++ b/library/Pbs/Graph.php
@@ -34,20 +34,20 @@ class Pbs_Graph {
graph[ bgcolor=transparent ];
node [ style=filled fillcolor="#ffffffff" ];';
if($this->level < 0)
- { $this->graphstring . = '"'.$this->getGroupTitle($groupID).'"'; }
+ { $this->graphstring .= '"'.$this->getGroupTitle($groupID).'"'; }
else
- { $this->graphstring . = '"'.$this->getGroupTitle($groupID).'" [ fontcolor="#ffffffff", style=filled, fillcolor="#004A99FF"];'; }
+ { $this->graphstring .= '"'.$this->getGroupTitle($groupID).'" [ fontcolor="#ffffffff", style=filled, fillcolor="#004A99FF"];'; }
if(count($this->childs) >= 1) {
foreach($this->childs as $childID) {
$this->edges[$groupID][$childID] = 1;
- $this->graphstring . = '"'.$this->getGroupTitle($groupID).'" -> "'.$this->getGroupTitle($childID).'";'."\n";
+ $this->graphstring .= '"'.$this->getGroupTitle($groupID).'" -> "'.$this->getGroupTitle($childID).'";'."\n";
$this->getChildGroups($childID);
}
}
$this->getParentGroups($groupID);
$this->getChildGroups($groupID);
- $this->graphstring . = '}';
+ $this->graphstring .= '}';
// for debugging
# $fp = fopen($path.'thisgraph.dot', "w");
@@ -79,8 +79,8 @@ class Pbs_Graph {
if(!file_exists($path.$md5.".png")) {
$str = 'echo "';
- $str . = $this->graphstring;
- $str . = '" | dot -Tpng >'.$path.$md5.".png";
+ $str .= $this->graphstring;
+ $str .= '" | dot -Tpng >'.$path.$md5.".png";
exec($str);
}
@@ -109,7 +109,7 @@ class Pbs_Graph {
// save the current groupID in level-list
#$data[$level][] = $row['parentID'];
if($this->edges[$row['parentID']][$groupID] != 1) {
- $this->graphstring . = '"'.$this->getGroupTitle($row['parentID']).'" -> "'.$this->getGroupTitle($groupID).'";'."\n";
+ $this->graphstring .= '"'.$this->getGroupTitle($row['parentID']).'" -> "'.$this->getGroupTitle($groupID).'";'."\n";
$this->edges[$row['parentID']][$groupID] = 1;
}
// get the function recursive an increase the level
@@ -130,11 +130,11 @@ class Pbs_Graph {
// save the current groupID in level-list
#$data[$level][] = $row['groupID'];
if(@$this->edges[$groupID][$row['groupID']] != 1) {
- $this->graphstring . = '"'.$this->getGroupTitle($groupID).'" -> "'.$this->getGroupTitle($row['groupID']).'";'."\n";
+ $this->graphstring .= '"'.$this->getGroupTitle($groupID).'" -> "'.$this->getGroupTitle($row['groupID']).'";'."\n";
$this->edges[$groupID][$row['groupID']] = 1;
}
if($this->level >= $level) {
- $this->graphstring . = '"'.$this->getGroupTitle($row['groupID']).'"'.' [ fontcolor="#ffffffff", style=filled, fillcolor="#004A99FF"];'."\n";
+ $this->graphstring .= '"'.$this->getGroupTitle($row['groupID']).'"'.' [ fontcolor="#ffffffff", style=filled, fillcolor="#004A99FF"];'."\n";
}
// get the function recursive an increase the level
$this->getChildGroups($row['groupID'], $level + 1);