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


PHP verifyArguments函數代碼示例

本文整理匯總了PHP中verifyArguments函數的典型用法代碼示例。如果您正苦於以下問題:PHP verifyArguments函數的具體用法?PHP verifyArguments怎麽用?PHP verifyArguments使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了verifyArguments函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: define

    define('sugarEntry', true);
}
$_SESSION = array();
$_SESSION['schema_change'] = 'sugar';
// we force-run all SQL
$_SESSION['silent_upgrade'] = true;
$_SESSION['step'] = 'silent';
// flag to NOT try redirect to 4.5.x upgrade wizard
$_REQUEST = array();
$_REQUEST['addTaskReminder'] = 'remind';
define('SUGARCRM_INSTALL', 'SugarCRM_Install');
define('DCE_INSTANCE', 'DCE_Instance');
global $cwd;
$cwd = getcwd();
// default to current, assumed to be in a valid SugarCRM root dir.
$upgradeType = verifyArguments($argv, $usage_regular);
///////////////////////////////////////////////////////////////////////////////
//////  Verify that all the arguments are appropriately placed////////////////
$path = $argv[2];
// custom log file, if blank will use ./upgradeWizard.log
$subdirs = array('full', 'langpack', 'module', 'patch', 'theme', 'temp');
//$_REQUEST['zip_from_dir'] = $zip_from_dir;
define('SUGARCRM_PRE_INSTALL_FILE', 'scripts/pre_install.php');
define('SUGARCRM_POST_INSTALL_FILE', 'scripts/post_install.php');
define('SUGARCRM_PRE_UNINSTALL_FILE', 'scripts/pre_uninstall.php');
define('SUGARCRM_POST_UNINSTALL_FILE', 'scripts/post_uninstall.php');
echo "\n";
echo "********************************************************************\n";
echo "***************This Upgrade process may take sometime***************\n";
echo "********************************************************************\n";
echo "\n";
開發者ID:vsanth,項目名稱:dynamic-crm,代碼行數:31,代碼來源:silentUpgrade_step1.php

示例2: define

////	END USAGE
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
////	STANDARD REQUIRED SUGAR INCLUDES AND PRESETS
if (!defined('sugarEntry')) {
    define('sugarEntry', true);
}
$_SESSION = array();
$_SESSION['schema_change'] = 'sugar';
// we force-run all SQL
$_SESSION['silent_upgrade'] = true;
$_SESSION['step'] = 'silent';
// flag to NOT try redirect to 4.5.x upgrade wizard
$_REQUEST = array();
define('SUGARCRM_INSTALL', 'SugarCRM_Install');
verifyArguments($argv, $usage_regular);
///////////////////////////////////////////////////////////////////////////////
//////  Verify that all the arguments are appropriately placed////////////////
///////////////////////////////////////////////////////////////////////////////
////	PREP LOCALLY USED PASSED-IN VARS & CONSTANTS
$instance_path = $argv[1];
$template = $argv[2];
$old_template = $argv[3];
$user_name = isset($argv[4]) ? $argv[4] : "admin";
$unzip_dir = getcwd();
$logpath = $path = $instance_path . "/shadow_upgrade.log";
// FIXME: can we use regular pre-post scripts?
define('SUGARCRM_PRE_INSTALL_FILE', "{$unzip_dir}/scripts/shadow_pre_install.php");
define('SUGARCRM_POST_INSTALL_FILE', "{$unzip_dir}/scripts/shadow_post_install.php");
echo "\n";
echo "********************************************************************\n";
開發者ID:adderall,項目名稱:shadow,代碼行數:31,代碼來源:shadowUpgrade.php


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