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


PHP Am_Request::get方法代码示例

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


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

示例1: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'thanks') {
         if ($this->getConfig('debugLog')) {
             Am_Di::getInstance()->errorLogTable->log('NetBilling Form [response-thanks]:' . json_encode($request->getParams()));
         }
         $this->invoice = $this->getDi()->invoiceTable->findFirstByPublicId($request->getFiltered('Ecom_ConsumerOrderID'));
         $url = $request->get('Ecom_Ezic_Response_StatusCode') == 0 || $request->get('Ecom_Ezic_Response_StatusCode') == 'F' ? $this->getCancelUrl() : $this->getReturnUrl();
         $response->setRedirect($url);
     } else {
         parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:13,代码来源:netbilling-form.php

示例2: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     list($action, $status, $id) = explode("-", $request->getActionName());
     if ($action != 'status') {
         if ($action != 'ipn' && $action != 'thanks' || $request->get('transaction_status') == 'SETTLED') {
             parent::directAction($request, $response, $invokeArgs);
         }
         return;
     }
     if (!in_array($status, array('return', 'ok', 'fail'))) {
         throw new Am_Exception_InternalError("Bad status-request {$status}");
     }
     if (!$id) {
         throw new Am_Exception_InternalError("Invoice ID is absent");
     }
     if (!($this->invoice = $this->getDi()->invoiceTable->findFirstByPublicId($id))) {
         throw new Am_Exception_InternalError("Invoice not found by id [{$id}]");
     }
     switch ($status) {
         case 'return':
             $url = $request->get('transactionStatus') == 'REJECTED' ? $this->getCancelUrl() : $this->getReturnUrl();
             break;
         case 'ok':
             $url = $this->getReturnUrl();
             break;
         case 'fail':
             $url = $this->getCancelUrl();
             break;
     }
     $response->setRedirect($url);
 }
开发者ID:grlf,项目名称:eyedock,代码行数:31,代码来源:paymento.php

示例3: createTransaction

 public function createTransaction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->get('ACK')) {
         return new Am_Paysystem_WsoPro_Transaction_PRO($this, $request, $response, $invokeArgs);
     } else {
         return new Am_Paysystem_WsoPro_Transaction($this, $request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:8,代码来源:warrior-plus.php

示例4: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ('reject' == $request->getActionName()) {
         $invoice = $this->getDi()->invoiceTable->findFirstByPublicId($request->get("orderDescription"));
         $url = $this->getRootUrl() . "/cancel?id=" . $invoice->getSecureId('CANCEL');
         return Am_Controller::redirectLocation($url);
     } else {
         return parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:10,代码来源:ipaydna.php

示例5: __construct

 public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs)
 {
     $DR = preg_replace("/\\s/", "+", $request->get('DR', $_GET['DR']));
     $rc4 = new Crypt_RC4($plugin->getConfig('secret', 'ebskey'));
     $QueryString = base64_decode($DR);
     $rc4->decrypt($QueryString);
     $QueryString = split('&', $QueryString);
     foreach ($QueryString as $param) {
         $param = split('=', $param);
         $request->setParam($param[0], $param[1]);
     }
     parent::__construct($plugin, $request, $request, $invokeArgs);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:13,代码来源:ebs.php

示例6: createTransaction

 public function createTransaction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     switch ($request->get("transactionType")) {
         case Am_Paysystem_Transaction_Plimus::CHARGE:
         case Am_Paysystem_Transaction_Plimus::RECURRING:
         case Am_Paysystem_Transaction_Plimus::AUTH_ONLY:
             return new Am_Paysystem_Transaction_Plimus_Charge($this, $request, $response, $invokeArgs);
         case Am_Paysystem_Transaction_Plimus::CANCELLATION:
             return new Am_Paysystem_Transaction_Plimus_Cancellation($this, $request, $response, $invokeArgs);
         case Am_Paysystem_Transaction_Plimus::REFUND:
             return new Am_Paysystem_Transaction_Plimus_Refund($this, $request, $response, $invokeArgs);
         case Am_Paysystem_Transaction_Plimus::CANCELLATION_REFUND:
             return new Am_Paysystem_Transaction_Plimus_Cancellation_Refund($this, $request, $response, $invokeArgs);
         case Am_Paysystem_Transaction_Plimus::CONTRACT_CHANGE:
             return new Am_Paysystem_Transaction_Plimus_Contract_Change($this, $request, $response, $invokeArgs);
         default:
             return null;
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:19,代码来源:plimus.php

示例7: fetchUserInfo

 /**
  * Find out user info from transaction details
  * @see $_autoCreateMap
  * @return array
  */
 function fetchUserInfo()
 {
     if (!$this->_autoCreateMap) {
         throw new Am_Exception_NotImplemented("Not implemented");
     }
     $ret = array();
     foreach ($this->_autoCreateMap as $field => $valKey) {
         switch ($field) {
             case 'user_external_id':
             case 'invoice_external_id':
                 break;
             case 'name':
                 @(list($ret['name_f'], $ret['name_l']) = preg_split('/\\s+/', $this->request->get($valKey), 2));
                 break;
             default:
                 $ret[$field] = $this->request->get($valKey);
         }
     }
     return $ret;
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:25,代码来源:Incoming.php

示例8: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'confirm') {
         $invoice = $this->getDi()->invoiceTable->findFirstBy(array('public_id' => $request->get('invoice')));
         if (!$invoice) {
             throw new Am_Exception_InputError('An error occurred while payment request');
         }
         if ($user = $this->getDi()->auth->getUser()) {
             if ($user->user_id != $invoice->user_id) {
                 throw new Am_Exception_InputError('An error occurred while payment request');
             }
         }
         $product = $this->getDi()->productTable->load($invoice->getItem(0)->item_id);
         $billers = json_decode($product->data()->getBlob('sliiing_billers'), true);
         if (!@$billers['options'][$request->get('biller')]) {
             throw new Am_Exception_InputError('An error occurred while payment request');
         }
         //redirect
         $aff = '0';
         $lin = '0';
         $refe_url = '0';
         $ip = '0';
         $keyword = '0';
         if (isset($_COOKIE['MID'])) {
             $mid = base64_decode($_COOKIE['MID']);
             list($aff, $lin, $refe_url, $ip, $keyword) = explode('|', $mid);
         }
         $datas = base64_encode("{$aff}|{$lin}|{$refe_url}|{$ip}|{$keyword}");
         $url = $billers['options'][$request->get('biller')];
         $url = str_replace('$datas', $datas, $url) . '&x_invoice_id=' . $invoice->public_id . '&username=' . $invoice->getUser()->login . '&email=' . urlencode($invoice->getUser()->email);
         header('Location: ' . $url);
         exit;
     } else {
         parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:36,代码来源:sliiing.php

示例9: setFromRequest

 public function setFromRequest(Am_Request $request)
 {
     if (is_string($search = $request->get('search'))) {
         $this->query->unserialize($search);
     } else {
         if ($id = $request->getInt('_u_search_load')) {
             $this->query->load($id);
         } else {
             $this->query->setFromRequest($request);
         }
     }
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:12,代码来源:Ui.php

示例10: __construct

 public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs)
 {
     $this->vercode = split(":", $request->get('vercode'));
     parent::__construct($plugin, $request, $response, $invokeArgs);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:5,代码来源:verotel.php

示例11: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     $actionName = $request->getActionName();
     if ($actionName == 'ipn') {
         if (!in_array($request->getClientIp(), $this->ips)) {
             throw new Am_Exception_InputError("Request not handled - ip is not allowed");
         }
         if ($request->get('art') == 'request') {
             $shopid = $request->get('shopid');
             if (!$shopid) {
                 throw new Am_Exception_InputError("Parameter shopid wasn't received");
             }
             $invoice = Am_Di::getInstance()->invoiceTable->findFirstByPublicId($shopid);
             if (!$invoice) {
                 throw new Am_Exception_InputError("No invoice found");
             }
             $params = array();
             $params['nachname'] = $invoice->getLastName();
             $params['vorname'] = $invoice->getFirstName();
             $params['strasse'] = $invoice->getStreet();
             $params['plz'] = $invoice->getZip();
             $params['ort'] = $invoice->getCity();
             $params['land'] = $invoice->getUser()->country;
             $params['email'] = $invoice->getEmail();
             $params['betrag'] = $invoice->first_total * 100;
             $params['compain_id'] = '';
             $params['ipadresse'] = $invoice->getUser()->remote_addr;
             if ($invoice->second_period) {
                 $aboanlage = 1;
                 $abopreis = $invoice->second_total * 100;
                 preg_match("/[\\d]+/", $invoice->second_period, $days);
                 if ($days[0] <= 365 && $days[0] >= 30) {
                     $abozeit = $days[0];
                 }
                 preg_match("/[\\d]+/", $invoice->first_period, $days);
                 if ($days[0] <= 365 && $days[0] >= 3) {
                     $abonext = $days[0];
                 }
                 $params['aboanlage'] = $aboanlage;
                 $params['abopreis'] = $abopreis;
                 $params['abozeit'] = $abozeit;
                 $params['abonext'] = $abonext;
             }
             $params['cur'] = strtolower($invoice->currency);
             $message = '';
             foreach ($params as $p) {
                 $message .= $p . ";";
             }
             echo utf8_decode($message);
             return;
         }
         //Getting invoice for providing a redirect-URL with the result confirmation
         $shopid = $request->get('shopid');
         $this->invoice = Am_Di::getInstance()->invoiceTable->findFirstByPublicId($shopid);
         $invoiceLog = $this->_logDirectAction($request, $response, $invokeArgs);
         $transaction = $this->createTransaction($request, $response, $invokeArgs);
         if (!$this->invoice) {
             throw new Am_Exception_InputError("Request not handled - Request's parameter shopid is incorrect");
         }
         if (!$transaction) {
             throw new Am_Exception_InputError("Request not handled - createTransaction() returned null");
         }
         $transaction->setInvoiceLog($invoiceLog);
         try {
             $transaction->process();
         } catch (Exception $e) {
             echo "OK;" . $this->getCancelUrl() . "?shopid=" . $this->invoice->public_id;
             if ($invoiceLog) {
                 $invoiceLog->add($e);
             }
             throw $e;
         }
         echo "OK;" . $this->getReturnUrl() . "?shopid=" . $this->invoice->public_id;
         if ($invoiceLog) {
             $invoiceLog->setProcessed();
         }
     } else {
         return parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:80,代码来源:inet-cash.php

示例12: createParams

 protected function createParams()
 {
     $params = parent::createParams();
     unset($params->fee_payer);
     unset($params->account_id);
     $params->checkout_id = $this->getrequest->get('checkout_id');
     return $params;
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:8,代码来源:wepay-onsite.php

示例13: createTransaction

 public function createTransaction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->get('checkout_id')) {
         return new Am_Paysystem_Transaction_Wepay_Checkout($this, $request, $response, $invokeArgs);
     } else {
         return new Am_Paysystem_Transaction_Wepay_Preapproval($this, $request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:8,代码来源:wepay.php

示例14: getIncomingSignature

 function getIncomingSignature(Am_Request $r)
 {
     $sig = md5(sprintf('%s%s%s%s%s%s%s', $r->get('MNT_ID'), $r->get('MNT_TRANSACTION_ID'), $r->get('MNT_OPERATION_ID'), $r->get('MNT_AMOUNT'), $r->get('MNT_CURRENCY_CODE'), $r->get('MNT_TEST_MODE'), $this->getConfig('secret_code')));
     return $sig;
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:5,代码来源:payanyway.php

示例15: __construct

 public function __construct(Am_Paysystem_Abstract $plugin, Am_Request $request, Zend_Controller_Response_Http $response, $invokeArgs)
 {
     $this->tracking_params = $request->get("tracking_params");
     $this->billing_address = $request->get("billing_address");
     $this->subscription = $request->get("subscription");
     parent::__construct($plugin, $request, $response, $invokeArgs);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:7,代码来源:certopay.php


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