当前位置: 首页>>代码示例>>PHP>>正文


PHP Http::getCurlInfo方法代码示例

本文整理汇总了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;
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:16,代码来源:RealtimeServices.php

示例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;
开发者ID:askzap,项目名称:ultimate,代码行数:31,代码来源:payments.php

示例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;
开发者ID:heg-arc-ne,项目名称:cscart,代码行数:31,代码来源:payments.php


注:本文中的Tygh\Http::getCurlInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。