From 7d4845817178b8c320fd7517c5d6f352ff9962af Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 13 Nov 2019 15:38:05 +0000 Subject: [PATCH] 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 --- tools/modelGraph.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/modelGraph.php b/tools/modelGraph.php index 80db3d1..1f4eaab 100755 --- a/tools/modelGraph.php +++ b/tools/modelGraph.php @@ -46,6 +46,12 @@ class modelgraph $tables[$table] = $this->db->getTableSchema ($table); } $d = "digraph G {\n"; + $d .= " graph [\n"; + $d .= " label = <". + "Database ".$this->db->databasename ()."
". + "".date ("Y-m-d")."". + ">\n"; + $d .= " ]\n"; $d .= " node [\n"; $d .= " shape=box\n"; $d .= " fontname = \"helvetica\"\n";