本文整理汇总了PHP中Tygh\Http::getCurlInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP Http::getCurlInfo方法的具体用法?PHP Http::getCurlInfo怎么用?PHP Http::getCurlInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tygh\Http
的用法示例。
在下文中一共展示了Http::getCurlInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _checkMultithreading
/**
* Check if multireading is available on the server
*
* @return bool True if available, false otherwise
*/
private static function _checkMultithreading()
{
if (function_exists('curl_multi_init') && Http::getCurlInfo() == '') {
$allow_multithreading = true;
$h_curl_multi = curl_multi_init();
$threads = array();
} else {
$allow_multithreading = false;
}
return $allow_multithreading;
}
示例2: array
}
return array(CONTROLLER_STATUS_REDIRECT, 'payments.processor?payment_id=' . $_REQUEST['payment_id']);
}
return array(CONTROLLER_STATUS_OK, 'payments.manage');
}
// If any method is selected - show it's settings
if ($mode == 'processor') {
$processor_data = fn_get_processor_data($_REQUEST['payment_id']);
// We're selecting new processor
if (!empty($_REQUEST['processor_id']) && (empty($processor_data['processor_id']) || $processor_data['processor_id'] != $_REQUEST['processor_id'])) {
$processor_data = db_get_row("SELECT * FROM ?:payment_processors WHERE processor_id = ?i", $_REQUEST['processor_id']);
$processor_data['processor_params'] = array();
$processor_data['currencies'] = !empty($processor_data['currencies']) ? explode(',', $processor_data['currencies']) : array();
}
if (!empty($processor_data) && $processor_data['callback'] == "Y") {
Tygh::$app['view']->assign('curl_info', Http::getCurlInfo($processor_data['processor']));
}
if (!empty($processor_data['processor_params']['certificate_filename'])) {
$processor_data['processor_params']['certificate_filename'] = fn_basename($processor_data['processor_params']['certificate_filename']);
}
$view = Tygh::$app['view'];
$processor_template = $processor_data['admin_template'];
if ($view->templateExists('views/payments/components/cc_processors/' . $processor_template)) {
$view->assign('processor_template', 'views/payments/components/cc_processors/' . $processor_template);
} else {
// Check if add-ons have required template
$addons = Registry::get('addons');
foreach ($addons as $addon_id => $addon) {
if ($view->templateExists('addons/' . $addon_id . '/views/payments/components/cc_processors/' . $processor_template)) {
$view->assign('processor_template', 'addons/' . $addon_id . '/views/payments/components/cc_processors/' . $processor_template);
break;
示例3: array
}
return array(CONTROLLER_STATUS_REDIRECT, 'payments.processor?payment_id=' . $_REQUEST['payment_id']);
}
return array(CONTROLLER_STATUS_OK, 'payments.manage');
}
// If any method is selected - show it's settings
if ($mode == 'processor') {
$processor_data = fn_get_processor_data($_REQUEST['payment_id']);
// We're selecting new processor
if (!empty($_REQUEST['processor_id']) && (empty($processor_data['processor_id']) || $processor_data['processor_id'] != $_REQUEST['processor_id'])) {
$processor_data = db_get_row("SELECT * FROM ?:payment_processors WHERE processor_id = ?i", $_REQUEST['processor_id']);
$processor_data['processor_params'] = array();
$processor_data['currencies'] = !empty($processor_data['currencies']) ? explode(',', $processor_data['currencies']) : array();
}
if (!empty($processor_data) && $processor_data['callback'] == "Y") {
Registry::get('view')->assign('curl_info', Http::getCurlInfo($processor_data['processor']));
}
if (!empty($processor_data['processor_params']['certificate_filename'])) {
$processor_data['processor_params']['certificate_filename'] = fn_basename($processor_data['processor_params']['certificate_filename']);
}
$view = Registry::get('view');
$processor_template = $processor_data['admin_template'];
if ($view->templateExists('views/payments/components/cc_processors/' . $processor_template)) {
$view->assign('processor_template', 'views/payments/components/cc_processors/' . $processor_template);
} else {
// Check if add-ons have required template
$addons = Registry::get('addons');
foreach ($addons as $addon_id => $addon) {
if ($view->templateExists('addons/' . $addon_id . '/views/payments/components/cc_processors/' . $processor_template)) {
$view->assign('processor_template', 'addons/' . $addon_id . '/views/payments/components/cc_processors/' . $processor_template);
break;