/** * Does the magic. Creates all necessary stuff and finally * saves the graph to the specified filename * * @param string $strFilename * @return void */ public function saveGraph($strFilename) { $this->preGraphCreation(); if (strpos($strFilename, _realpath_) === false) { $strFilename = _realpath_ . $strFilename; } $this->objGraph->render($this->intWidth, $this->intHeight, $strFilename); }