本文整理汇总了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) {
?>