本文整理匯總了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 . "¤t_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");
}
}