public function createGraph() { $graph = new Image_GraphViz(true, array('size' => "17,17", "ratio" => "true")); $attributes = array('rankdir' => "LR"); $graph->addAttributes($attributes); $graph->addNode($this->title); //var_dump($this->nonFuncReqs); foreach ($this->nonFuncReqs as $nonFuncReq) { $this->addAndLinkNodeForRemoteObject($graph, $nonFuncReq, "A comme besoin non fonctionnel", "nonfuncreq"); } foreach ($this->members as $member) { $this->addAndLinkNodeForRemoteObject($graph, $member, "A comme membre", "member"); } foreach ($this->definitions as $definition) { $this->addAndLinkNodeForRemoteObject($graph, $definition, "A comme définition", "definition"); } foreach ($this->ingredients as $ingredient) { $this->addAndLinkNodeForRemoteObject($graph, $ingredient, "A comme ingrédient", "ingredient"); } foreach ($this->funcReqs as $funcReq) { $this->addAndLinkNodeForFuncReq($graph, $funcReq); } return $graph; //$graph->image(); //$graph->image(); }
public function createGraph() { $graph = new Image_GraphViz(); $attributes = array('rankdir' => "LR"); $graph->addAttributes($attributes); $graph->addNode($this->title); foreach ($this->members as $member) { $this->addAndLinkNodeForRemoteObject($graph, $member, "A comme membre", "member"); } foreach ($this->definitions as $definition) { $this->addAndLinkNodeForRemoteObject($graph, $definition, "A comme définition", "definition"); } foreach ($this->ingredients as $ingredient) { $this->addAndLinkNodeForRemoteObject($graph, $ingredient, "A comme ingrédient", "ingredient"); } foreach ($this->projects as $project) { $this->addAndLinkNodeForRemoteObject($graph, $project, "A comme projet", "project"); } $this->linkWithString($graph, $this->theme, "A comme theme", "theme"); //$graph->image(); return $graph; }