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