From b4f158744d6dcd207966d0213b037bd4866c1a43 Mon Sep 17 00:00:00 2001 From: Erdogan Furkan Date: Fri, 29 Jul 2022 15:55:54 +0000 Subject: [PATCH] Showing TT informations on coordinates field --- src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php b/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php index c70c8e5..ce4f29e 100644 --- a/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php +++ b/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php @@ -59,7 +59,23 @@ class IHMPlotContextFileClass { $panelContext['y'] = $pageContext['height'] - intval($panelNode->getAttribute('y')) - $panelContext['height']; $panelContext['width'] = intval($panelNode->getAttribute('width')); } - + + // + $intervalsNodes = $panelNode->getElementsByTagName('intervals'); + if ($intervalsNodes->length > 0) { + $panelContext['intervals'] = array(); + } + foreach ($intervalsNodes as $intervalsNode) { + $intervalsContext = array( + 'name' => $intervalsNode->getAttribute('name'), + 'id' => $intervalsNode->getAttribute('id'), + 'startTime' => $intervalsNode->getAttribute('startTime'), + 'stopTime' => $intervalsNode->getAttribute('stopTime'), + ); + + $panelContext['intervals'][] = $intervalsContext; + } + // $plotAreaNodes = $panelNode->getElementsByTagName('plotArea'); -- libgit2 0.21.2