private function saveAggregateOperations($operationsArray)
 {
     $xml = new XMLOperations();
     $domArray = array();
     foreach ($operationsArray as $operation) {
         $domArray[] = DOMAndCommunicationModelConverter::convertModelToDOM($operation, $xml->getDOMDocument());
     }
     $xml->save('data/all_events.xml', $domArray, 'DevicesEvents');
 }
 public function GetOperations()
 {
     $xml = new XMLOperations();
     $xml->open($this->xmlFileName);
     $operationsArray = array();
     $domList = $xml->getEventsDOMArray();
     foreach ($domList as $dom) {
         $operationsArray[] = DOMAndCommunicationModelConverter::convertModelToCommunicationModel($dom);
     }
     return $operationsArray;
 }