From 17e90e1370b16fdf234e482a874cc5c55397daad Mon Sep 17 00:00:00 2001 From: Erdogan Furkan Date: Wed, 3 Aug 2022 12:27:30 +0000 Subject: [PATCH] #10098 Modifications on the reading context file part --- src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php b/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php index ce4f29e..f841dbb 100644 --- a/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php +++ b/src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php @@ -64,16 +64,18 @@ class IHMPlotContextFileClass { $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; + foreach ($intervalsNodes as $intervalsNode) { + $intervalsContext = array( + 'name' => $intervalsNode->getAttribute('name'), + 'id' => $intervalsNode->getAttribute('id'), + 'startTime' => $intervalsNode->getAttribute('startTime'), + 'stopTime' => $intervalsNode->getAttribute('stopTime'), + 'params' => $intervalsNode->getAttribute('params') + ); + + $panelContext['intervals'][] = $intervalsContext; + } } // -- libgit2 0.21.2