本文整理匯總了PHP中Update::notes方法的典型用法代碼示例。如果您正苦於以下問題:PHP Update::notes方法的具體用法?PHP Update::notes怎麽用?PHP Update::notes使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Update
的用法示例。
在下文中一共展示了Update::notes方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getTranslation
$PAGE->generate_headers_footers();
if (!isset($_GET['page'])) {
$title_text = getTranslation("Update from version", $settings);
$title_text = $title_text . " ";
$title_text = $title_text . $current_version;
$title_text = $title_text . " ";
$title_text = $title_text . getTranslation("to version", $settings);
$title_text = $title_text . " ";
$title_text = $title_text . $next_version;
$PAGE->body = $PAGE->body . "<br/>";
$PAGE->body = $PAGE->body . "<b>";
$PAGE->body = $PAGE->body . getTranslation("Update Notes for version", $settings);
$PAGE->body = $PAGE->body . " ";
$PAGE->body = $PAGE->body . $next_version;
$PAGE->body = $PAGE->body . "</b>";
$update_notes = $UPDATE->notes();
if (strlen($update_notes) > 0) {
$PAGE->body = $PAGE->body . "<ul>";
$PAGE->body = $PAGE->body . "<br/>";
$PAGE->body = $PAGE->body . $update_notes;
$PAGE->body = $PAGE->body . "</ul>";
}
} elseif (isset($_GET['page']) && intval($_GET['page']) == 2 && isset($_POST['btnSubmit'])) {
// CALL THE UPDATE COMMANDS
$UPDATE->execute();
$old_version = $current_version;
// UPDATE THE DATABASE VERSION NUMBER
$sys_setting = new sys_setting();
$sys_setting->get_from_hashrange("system", "version");
$sys_setting->update(array("val" => $next_version));
$database_version = $sys_setting->val;