当前位置: 首页>>代码示例>>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;未经允许,请勿转载。