本文整理匯總了PHP中DUP_Package::GetByID方法的典型用法代碼示例。如果您正苦於以下問題:PHP DUP_Package::GetByID方法的具體用法?PHP DUP_Package::GetByID怎麽用?PHP DUP_Package::GetByID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DUP_Package
的用法示例。
在下文中一共展示了DUP_Package::GetByID方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
<?php
DUP_Util::CheckPermissions('manage_options');
global $wpdb;
//COMMON HEADER DISPLAY
$current_tab = isset($_REQUEST['tab']) ? esc_html($_REQUEST['tab']) : 'detail';
$package_id = isset($_REQUEST["id"]) ? $_REQUEST["id"] : 0;
$package = DUP_Package::GetByID($package_id);
$err_found = $package == null || $package->Status < 100;
$err_link_pack = "Duplicator.Pack.DownloadPackageFile(3, {$package->ID});return false;";
$err_link_log = "<a target='_blank' href='#' onclick='{$err_link_pack}'>" . DUP_Util::__('Package Log') . '</a>';
$err_link_faq = '<a target="_blank" href="https://snapcreek.com/duplicator/docs/faqs-tech/">' . DUP_Util::__('FAQ Pages') . '</a>';
$err_link_ticket = '<a target="_blank" href="https://snapcreek.com/ticket/">' . DUP_Util::__('Help Ticket') . '</a>';
?>
<style>
.narrow-input { width: 80px; }
.wide-input {width: 400px; }
table.form-table tr td { padding-top: 25px; }
div.all-packages {float:right; margin-top: -30px; }
div.all-packages a.add-new-h2 {font-size: 16px}
</style>
<div class="wrap">
<?php
duplicator_header(DUP_Util::__("Package Details » {$package->Name}"));
?>
<?php
if ($err_found) {
?>