modelGraph : Add the database name and date in graph title

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5708 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-11-13 15:38:05 +00:00
parent 93f20b1569
commit 7d48458171

View File

@@ -46,6 +46,12 @@ class modelgraph
$tables[$table] = $this->db->getTableSchema ($table); $tables[$table] = $this->db->getTableSchema ($table);
} }
$d = "digraph G {\n"; $d = "digraph G {\n";
$d .= " graph [\n";
$d .= " label = <".
"<B>Database ".$this->db->databasename ()."</B><BR/>".
"<B>".date ("Y-m-d")."</B>".
">\n";
$d .= " ]\n";
$d .= " node [\n"; $d .= " node [\n";
$d .= " shape=box\n"; $d .= " shape=box\n";
$d .= " fontname = \"helvetica\"\n"; $d .= " fontname = \"helvetica\"\n";