Example #1
0
 private static function publishToVMCaster($researcher, $vo, $voimagelist)
 {
     $url = VMCaster::getVMCasterUrl();
     $url .= "/vmlistcontroller/create/" . $voimagelist->id . "/published/vos";
     $result = web_get_contents($url);
     if ($result === false) {
         error_log("[VOAdmin:publishToVMCaster]:Could not retrieve response data from " . $url);
         return false;
     }
     return true;
 }
Example #2
0
 public static function statusIntegrityCheck($vaversionid)
 {
     $url = VMCaster::getVMCasterUrl() . "/integrity/statusimageList/" . $vaversionid . "/xml";
     try {
         $xml = web_get_contents($url);
         if (trim($xml) === "") {
             throw new Exception('Could not connect with integrity check service. Please, try again later.');
         }
         $result = VMCaster::parseIntegrityCheckResponse($xml);
     } catch (Exception $ex) {
         $result = VMCaster::parseIntegrityCheckResponse('[ERROR]' . $ex->getMessage());
         return $result;
     }
     $newres = VMCaster::syncStatusIntegrityCheck($result);
     return $newres;
 }