本文整理汇总了PHP中DUP_Package::GetSystemRequirments方法的典型用法代码示例。如果您正苦于以下问题:PHP DUP_Package::GetSystemRequirments方法的具体用法?PHP DUP_Package::GetSystemRequirments怎么用?PHP DUP_Package::GetSystemRequirments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DUP_Package
的用法示例。
在下文中一共展示了DUP_Package::GetSystemRequirments方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: switch
global $wpdb;
//POST BACK
$action_updated = null;
if (isset($_POST['action'])) {
$action_result = DUP_Settings::DeleteWPOption($_POST['action']);
switch ($_POST['action']) {
case 'duplicator_package_active':
$action_response = __('Package settings have been reset.', 'wpduplicator');
break;
}
}
DUP_Util::InitSnapshotDirectory();
$Package = new DUP_Package();
$Package = $Package->GetActive();
$dup_tests = array();
$dup_tests = DUP_Package::GetSystemRequirments();
$default_name = DUP_Package::GetDefaultName();
$view_state = DUP_UI::GetViewStateArray();
$ui_css_archive = isset($view_state['dup-pack-archive-panel']) && $view_state['dup-pack-archive-panel'] ? 'display:block' : 'display:none';
$ui_css_installer = isset($view_state['dup-pack-installer-panel']) && $view_state['dup-pack-installer-panel'] ? 'display:block' : 'display:none';
$package_skip_scanner = DUP_Settings::Get('package_skip_scanner');
?>
<style>
/* -----------------------------
REQUIRMENTS*/
div.dup-sys-section {margin:1px 0px 5px 0px}
div.dup-sys-title {display:inline-block; width:250px; padding:1px; }
div.dup-sys-title div {display:inline-block;float:right; }
div.dup-sys-info {display:none; max-width: 800px}
div.dup-sys-pass {display:inline-block; color:green;}