本文整理匯總了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;}