/**
  * Command to clear the loop detection data
  * Mobiles may enter loop detection (one-by-one synchring due to timeouts / erros).
  *
  * @return
  * @access public
  */
 public static function CommandClearLoopDetectionData()
 {
     $stat = false;
     $stat = ZPushAdmin::ClearLoopDetectionData(self::$user, self::$device);
     if (self::$user === false && self::$device === false) {
         echo sprintf("System wide loop detection data removed: %s", $stat ? 'OK' : ZLog::GetLastMessage(LOGLEVEL_ERROR)) . "\n";
     } elseif (self::$user === false) {
         echo sprintf("Loop detection data of device '%s' removed: %s", self::$device, $stat ? 'OK' : ZLog::GetLastMessage(LOGLEVEL_ERROR)) . "\n";
     } elseif (self::$device === false && self::$user !== false) {
         echo sprintf("Error: %s", $stat ? 'OK' : ZLog::GetLastMessage(LOGLEVEL_WARN)) . "\n";
     } else {
         echo sprintf("Loop detection data of device '%s' of user '%s' removed: %s", self::$device, self::$user, $stat ? 'OK' : ZLog::GetLastMessage(LOGLEVEL_ERROR)) . "\n";
     }
 }