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


PHP PagSeguroConfig::activeLog方法代码示例

本文整理汇总了PHP中PagSeguroConfig::activeLog方法的典型用法代码示例。如果您正苦于以下问题:PHP PagSeguroConfig::activeLog方法的具体用法?PHP PagSeguroConfig::activeLog怎么用?PHP PagSeguroConfig::activeLog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PagSeguroConfig的用法示例。


在下文中一共展示了PagSeguroConfig::activeLog方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _load

 /**
  * Load model and language
  */
 private function _load()
 {
     PagSeguroConfig::activeLog($this->_getDirectoryLog());
     $this->language->load('payment/pagseguro');
     $this->load->model('checkout/order');
     $this->load->model('setting/setting');
     $this->load->model('payment/pagseguro');
     $this->language->load('payment/pagseguro');
 }
开发者ID:vidaecor,项目名称:opencart,代码行数:12,代码来源:pagseguro.php

示例2: createLog

 private function createLog()
 {
     /*** Retrieving configurated default charset */
     PagSeguroConfig::setApplicationCharset(Configuration::get('PAGSEGURO_CHARSET'));
     /*** Retrieving configurated default log info */
     if (Configuration::get('PAGSEGURO_LOG_ACTIVE')) {
         PagSeguroConfig::activeLog(_PS_ROOT_DIR_ . Configuration::get('PAGSEGURO_LOG_FILELOCATION'));
     }
     LogPagSeguro::info("PagSeguroAbandoned.Search( 'Pesquisa de transações abandonadas realizada em " . date("d/m/Y H:i") . ".')");
 }
开发者ID:franklindias,项目名称:prestashop,代码行数:10,代码来源:PagSeguroAbandonedOrder.php

示例3: setPagSeguroConfig

 /**
  * Set Config's to PagSeguro API
  */
 private function setPagSeguroConfig()
 {
     $activeLog = $this->getConfigData('log');
     $charset = $this->getConfigData('charset');
     //Module version
     PagSeguroLibrary::setModuleVersion('magento' . ':' . Mage::helper('pagseguro')->getVersion());
     //CMS version
     PagSeguroLibrary::setCMSVersion('magento' . ':' . Mage::getVersion());
     //Setup Charset
     if ($charset != null and !empty($charset)) {
         PagSeguroConfig::setApplicationCharset($charset);
     }
     //Setup Log
     if ($activeLog == 1) {
         $logFile = $this->getConfigData('log_file');
         if (self::checkFile(Mage::getBaseDir() . '/' . $logFile)) {
             PagSeguroConfig::activeLog(Mage::getBaseDir() . '/' . $logFile);
         } else {
             PagSeguroConfig::activeLog();
             //Default Log
         }
     }
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:26,代码来源:PaymentMethod.php

示例4: _retrievePagSeguroConfiguration

 /**
  * Retrieve PagSeguro data configuration from database
  */
 private function _retrievePagSeguroConfiguration()
 {
     /* Retrieving configurated default charset */
     PagSeguroConfig::setApplicationCharset(Configuration::get('PAGSEGURO_CHARSET'));
     /* Retrieving configurated default log info */
     if (Configuration::get('PAGSEGURO_LOG_ACTIVE')) {
         PagSeguroConfig::activeLog(_PS_ROOT_DIR_ . Configuration::get('PAGSEGURO_LOG_FILELOCATION'));
     }
 }
开发者ID:ventsiwad,项目名称:presta_addons,代码行数:12,代码来源:validation.php

示例5: __construct

 /**
  * Constructor for init always data for gateway.
  *
  * @return void
  */
 public function __construct()
 {
     $this->load();
     $this->id = 'pagseguro';
     $this->has_fields = false;
     $this->method_title = 'PagSeguro';
     $this->icon = plugins_url('image/ps-logo.png', __FILE__);
     $this->init_form_fields();
     $this->init_settings();
     // Define user set variables.
     $this->title = $this->settings['title'];
     $this->description = $this->settings['description'];
     $this->email = $this->settings['email'];
     $this->token = $this->settings['token'];
     $this->invoice_prefix = !empty($this->settings['invoice_prefix']) ? $this->settings['invoice_prefix'] : 'WC-';
     $this->url_notification = $this->settings['url_notification'];
     $this->url_redirect = $this->settings['url_redirect'];
     $this->charset = $this->settings['charset'];
     $this->debug = $this->settings['debug'];
     $this->path_log = $this->settings['path_log'];
     // Actions.
     if (version_compare(WOOCOMMERCE_VERSION, '2.0.0', '>=')) {
         add_action('woocommerce_update_options_payment_gateways_' . $this->id, array(&$this, 'process_admin_options'));
     } else {
         add_action('woocommerce_update_options_payment_gateways', array(&$this, 'process_admin_options'));
     }
     $this->enabled = 'no';
     if ('yes' == $this->settings['enabled'] && !empty($this->email) && !empty($this->token) && $this->is_valid_for_use()) {
         $this->enabled = 'yes';
     }
     // Checks if email is not empty.
     if (empty($this->email)) {
         add_action('admin_notices', array(&$this, 'mail_missing_message'));
     }
     // Checks if token is not empty.
     if (empty($this->token)) {
         add_action('admin_notices', array(&$this, 'token_missing_message'));
     }
     global $woocommerce;
     // Active logs.
     if ('yes' == $this->debug) {
         $this->log = new WC_Logger();
         $this->createLogFile($this->returnPathLog());
         PagSeguroConfig::activeLog($this->returnPathLog());
     }
     //Insert new status of PagSeguro
     wp_insert_term('em disputa', 'shop_order_status');
 }
开发者ID:moterra,项目名称:woocommerce,代码行数:53,代码来源:wpwcpagseguro.php

示例6: _setPagSeguroConfiguration

 /**
  * Retrieve PagSeguro data configuration from database
  */
 private function _setPagSeguroConfiguration(TablePaymentmethods $method)
 {
     // retrieving configurated default charset
     PagSeguroConfig::setApplicationCharset($method->pagseguro_charset);
     // retrieving configurated default log info
     if ($method->pagseguro_log) {
         $filename = JPATH_BASE . $method->pagseguro_log_file_name;
         $this->_verifyFile($filename);
         PagSeguroConfig::activeLog($filename);
     }
 }
开发者ID:saper,项目名称:organic-extensions,代码行数:14,代码来源:pagseguro.patch.php

示例7: _setPagSeguroConfiguration

 /**
  * Retrieve PagSeguro data configuration from database
  */
 private function _setPagSeguroConfiguration()
 {
     // retrieving configurated default charset
     PagSeguroConfig::setApplicationCharset('UTF-8');
     // retrieving configurated default log info
     $filename = JPATH_BASE . '/logs/log_pagseguro.log';
     $this->_verifyFile($filename);
     PagSeguroConfig::activeLog($filename);
 }
开发者ID:HikaShop,项目名称:hikashoppayment-pagseguro,代码行数:12,代码来源:pagseguro.php

示例8: createLog

 public function createLog($type, $dados)
 {
     /*** Retrieving configurated default charset */
     PagSeguroConfig::setApplicationCharset(Configuration::get('PAGSEGURO_CHARSET'));
     /*** Retrieving configurated default log info */
     if (Configuration::get('PAGSEGURO_LOG_ACTIVE')) {
         PagSeguroConfig::activeLog(_PS_ROOT_DIR_ . Configuration::get('PAGSEGURO_LOG_FILELOCATION'));
     }
     switch ($type) {
         case 'search':
             LogPagSeguro::info("PagSeguroConciliation.Search( 'Pesquisa de conciliação realizada em " . date("d/m/Y H:i") . " em um intervalo de " . $dados['days'] . " dias.')");
             break;
         default:
             LogPagSeguro::info("PagSeguroConciliation.Register( 'Alteração de Status da compra '" . $dados['idOrder'] . "' para o Status '" . $dados['newStatus'] . "(" . $dados['newIdStatus'] . ")' - '" . date("d/m/Y H:i") . "') - end");
             break;
     }
 }
开发者ID:kennedimalheiros,项目名称:prestashop,代码行数:17,代码来源:conciliation.php

示例9: createLog

 private function createLog($e)
 {
     /** Retrieving configurated default charset */
     PagSeguroConfig::setApplicationCharset(Configuration::get('PAGSEGURO_CHARSET'));
     /** Retrieving configurated default log info */
     if (Configuration::get('PAGSEGURO_LOG_ACTIVE')) {
         PagSeguroConfig::activeLog(_PS_ROOT_DIR_ . Configuration::get('PAGSEGURO_LOG_FILELOCATION'));
     }
     LogPagSeguro::info("PagSeguroService.Notification( 'Erro ao processar notificação. ErrorMessage: " . $e . " ') - end");
 }
开发者ID:kennedimalheiros,项目名称:prestashop,代码行数:10,代码来源:pagseguronotificationorderprestashop.php

示例10: _setPagSeguroConfiguration

 /**
  * Retrieve PagSeguro data configuration from database
  */
 private function _setPagSeguroConfiguration()
 {
     $charset = $this->request->post['pagseguro_charset'] == 1 ? $this->language->get('iso') : $this->language->get('utf');
     // setting configurated default charset
     PagSeguroConfig::setApplicationCharset($charset);
     $activeLog = $this->request->post['pagseguro_log'] == 1 ? TRUE : FALSE;
     // setting configurated default log info
     if ($activeLog) {
         $directory = $this->_getDirectoryLog();
         $this->_verifyLogFile($directory);
         PagSeguroConfig::activeLog($directory);
     }
 }
开发者ID:vidaecor,项目名称:opencart,代码行数:16,代码来源:pagseguro.php

示例11: setPagSeguroConfig

 /**
  * Set Config's to PagSeguro API
  *
  */
 private function setPagSeguroConfig()
 {
     $_activeLog = $this->getConfigData('log');
     $_charset = $this->getConfigData('charset');
     Mage::getSingleton('PagSeguro_PagSeguro_Helper_Data')->saveAllStatusPagSeguro();
     //Module version
     PagSeguroLibrary::setModuleVersion('magento' . ':' . $this->Module_Version);
     //CMS version
     PagSeguroLibrary::setCMSVersion('magento' . ':' . Mage::getVersion());
     //Setup Charset
     if ($_charset != null and !empty($_charset)) {
         PagSeguroConfig::setApplicationCharset($_charset);
     }
     //Setup Log
     if ($_activeLog == 1) {
         $_log_file = $this->getConfigData('log_file');
         if (self::checkFile(Mage::getBaseDir() . '/' . $_log_file)) {
             PagSeguroConfig::activeLog(Mage::getBaseDir() . '/' . $_log_file);
         } else {
             PagSeguroConfig::activeLog();
             //Default Log
         }
     }
 }
开发者ID:danielwalterrodrigues,项目名称:asus,代码行数:28,代码来源:PaymentMethod.php

示例12: activeLog

 private function activeLog()
 {
     if (Configuration::get('PAGSEGURO_LOG_ACTIVE')) {
         PagSeguroConfig::setApplicationCharset(Configuration::get('PAGSEGURO_CHARSET'));
         PagSeguroConfig::activeLog(_PS_ROOT_DIR_ . Configuration::get('PAGSEGURO_LOG_FILELOCATION'));
         $this->logActive = true;
     }
 }
开发者ID:franklindias,项目名称:prestashop,代码行数:8,代码来源:PagSeguroOrderConciliation.php


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