本文整理汇总了PHP中AppConfig::initFromUserInput方法的典型用法代码示例。如果您正苦于以下问题:PHP AppConfig::initFromUserInput方法的具体用法?PHP AppConfig::initFromUserInput怎么用?PHP AppConfig::initFromUserInput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppConfig
的用法示例。
在下文中一共展示了AppConfig::initFromUserInput方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: installationFailed
installationFailed("You must have PHP mysqli extension loaded to continue with the installation.", null, null);
}
// get the user input if needed
if ($user->isInputLoaded()) {
logMessage(L_USER, "Skipping user input, previous installation input will be used.");
} else {
$user->getApplicationInput();
}
// get from kConf.php the latest versions of kmc , clipapp and HTML5
$kconf = file_get_contents("package/app/app/configurations/base.ini");
$latestVersions = array();
$latestVersions["KMC_VERSION"] = getVersionFromKconf($kconf, "kmc_version");
$latestVersions["CLIPAPP_VERSION"] = getVersionFromKconf($kconf, "clipapp_version");
$latestVersions["HTML5_VERSION"] = getVersionFromKconf($kconf, "html5_version");
// init the application configuration
$app->initFromUserInput(array_merge((array) $user->getAll(), (array) $latestVersions));
$db_params['db_host'] = $app->get('DB1_HOST');
$db_params['db_port'] = $app->get('DB1_PORT');
$db_params['db_user'] = $app->get('DB1_USER');
$db_params['db_pass'] = $app->get('DB1_PASS');
// verify prerequisites
echo PHP_EOL;
logMessage(L_USER, "Verifing prerequisites");
@exec(sprintf("%s installer/Prerequisites.php '%s' '%s' '%s' '%s' '%s' 2>&1", $app->get("PHP_BIN"), $app->get("HTTPD_BIN"), $db_params['db_host'], $db_params['db_port'], $db_params['db_user'], $db_params['db_pass']), $output, $exit_value);
if ($exit_value !== 0) {
$description = " " . implode("\n ", $output) . "\n";
echo PHP_EOL;
installationFailed("One or more prerequisites required to install Kaltura failed:", $description, "Please resolve the issues and run the installation again.");
}
// verify that there are no leftovers from previous installations
echo PHP_EOL;