Commit b4f158744d6dcd207966d0213b037bd4866c1a43

Authored by Erdogan Furkan
1 parent fe1a8ddd

Showing TT informations on coordinates field

Showing 1 changed file with 17 additions and 1 deletions   Show diff stats
src/InputOutput/IHMImpl/Tools/IHMPlotContextFileClass.php
... ... @@ -59,7 +59,23 @@ class IHMPlotContextFileClass {
59 59 $panelContext['y'] = $pageContext['height'] - intval($panelNode->getAttribute('y')) - $panelContext['height'];
60 60 $panelContext['width'] = intval($panelNode->getAttribute('width'));
61 61 }
62   -
  62 +
  63 + //<intervals>
  64 + $intervalsNodes = $panelNode->getElementsByTagName('intervals');
  65 + if ($intervalsNodes->length > 0) {
  66 + $panelContext['intervals'] = array();
  67 + }
  68 + foreach ($intervalsNodes as $intervalsNode) {
  69 + $intervalsContext = array(
  70 + 'name' => $intervalsNode->getAttribute('name'),
  71 + 'id' => $intervalsNode->getAttribute('id'),
  72 + 'startTime' => $intervalsNode->getAttribute('startTime'),
  73 + 'stopTime' => $intervalsNode->getAttribute('stopTime'),
  74 + );
  75 +
  76 + $panelContext['intervals'][] = $intervalsContext;
  77 + }
  78 +
63 79 //<plotArea>
64 80 $plotAreaNodes = $panelNode->getElementsByTagName('plotArea');
65 81  
... ...