當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Updater::printReleaseNotes方法代碼示例

本文整理匯總了PHP中Updater::printReleaseNotes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Updater::printReleaseNotes方法的具體用法?PHP Updater::printReleaseNotes怎麽用?PHP Updater::printReleaseNotes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Updater的用法示例。


在下文中一共展示了Updater::printReleaseNotes方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

 }
 if (!$error) {
     if ($latest_version <= $current_version) {
         $should_upgrade = false;
         $updater->upgradeLog("Your installation is up to date", true, "Version: " . $current_version);
     } elseif (!isset($_POST['do_start_upgrade'])) {
         $release_notes = $curl->get($updater->api_path . "?method=getReleaseNotes&key=" . $license_key . "&current_version=" . $current_version);
         if ($curl->getHttpCode() >= 200 && $curl->getHttpCode() < 400) {
             $release_notes = json_decode($release_notes, true);
             if (isset($release_notes['error'])) {
                 $updater->upgradeLog("Getting release notes...", false, "API down, try again later #1");
             } else {
                 if (!count($release_notes)) {
                     $release_notes[$latest_version] = array("No release notes found for this version");
                 }
                 $updater->printReleaseNotes($release_notes);
             }
         } else {
             $updater->upgradeLog("Getting release notes...", false, "API down, try again later #2");
         }
     }
 }
 if ($should_upgrade && isset($_POST['do_start_upgrade'])) {
     if (!$error) {
         if (!is_writeable($basepath . "/cachefiles")) {
             $updater->upgradeLog("Checking if cache folder is writable...", false, "Fail. Please chmod /cachefiles");
             $error = true;
         } else {
             $updater->upgradeLog("Checking if cache folder is writable...", true, "Success");
         }
     }
開發者ID:Bluejuice1001,項目名稱:tvstreamscript,代碼行數:31,代碼來源:update.php


注:本文中的Updater::printReleaseNotes方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。