Esempio n. 1
0
 public static function checkIfZoneIsSleeping($dom)
 {
     if (Zone::zoneSleeping()) {
         /* todo: Should create a SIF_MESSAGE_TYPE for errors */
         $_SESSION['SIF_MESSAGE_TYPE'] = 1;
         $headerNode = $dom->getElementsByTagName('SIF_Header')->item(0);
         $originalMsgId = $headerNode->getElementsByTagName('SIF_MsgId')->item(0)->nodeValue;
         $originalSourceId = $headerNode->getElementsByTagName('SIF_SourceId')->item(0)->nodeValue;
         $timestamp = Utility::createTimestamp();
         $msgId = Utility::createMessageId();
         $sifMessageNode = $dom->getElementsByTagName('SIF_Message')->item(0);
         XmlHelper::buildSuccessMessage($msgId, $timestamp, $originalSourceId, $originalMsgId, 8);
         exit;
     }
 }