當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DUP_Package::GetSystemRequirments方法代碼示例

本文整理匯總了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;}
開發者ID:donwea,項目名稱:nhap.org,代碼行數:31,代碼來源:new1.base.php


注:本文中的DUP_Package::GetSystemRequirments方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。