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


PHP Am_Request::getActionName方法代码示例

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


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

示例1: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'thanks') {
         return $this->thanksAction($request, $response, $invokeArgs);
     }
     parent::directAction($request, $response, $invokeArgs);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:7,代码来源:wepay-onsite.php

示例2: directAction

 function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'ipn') {
         echo 'OK';
     }
     return parent::directAction($request, $response, $invokeArgs);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:7,代码来源:paymentwall.php

示例3: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'ipn' && ($request->getParam('monelib_meaning') == 'USEMULTISHOT' || $request->getParam('monelib_meaning') == 'USEEZSHOT')) {
         return;
     }
     parent::directAction($request, $response, $invokeArgs);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:7,代码来源:monelib.php

示例4: 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

示例5: createTransaction

 public function createTransaction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'api') {
         return new Am_Paysystem_Transaction_1shoppingcart_api($this, $request, $response, $invokeArgs);
     } else {
         return new Am_Paysystem_Transaction_1shoppingcart($this, $request, $response, $invokeArgs);
     }
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:8,代码来源:1shoppingcart.php

示例6: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     $user = $this->getDi()->user;
     $id = $this->getDi()->app->reveal($request->getActionName());
     //actualy it is notification_id
     $notification = $this->getDi()->notificationTable->load($id);
     $this->getDi()->notificationClickTable->log($user, $notification);
     Am_Controller::redirectLocation($notification->url);
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:9,代码来源:notification.php

示例7: 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

示例8: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == self::ACTION_IPN) {
         return parent::directAction($request, $response, $invokeArgs);
     } else {
         $request->setActionName($request->getActionName());
         $p = new Am_Controller_CreditCard($request, $response, $invokeArgs);
         $p->setPlugin($this);
         $p->run();
     }
 }
开发者ID:subashemphasize,项目名称:test_site,代码行数:11,代码来源:CreditCard.php

示例9: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'refund') {
         echo "OK";
         ob_flush();
         return $this->refundAction($request, $response, $invokeArgs);
     } else {
         echo "<softshop></softshop>";
         ob_flush();
         parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:12,代码来源:swreg.php

示例10: 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

示例11: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'ipn') {
         try {
             parent::directAction($request, $response, $invokeArgs);
         } catch (Exception $ex) {
             $this->getDi()->errorLogTable->logException($ex);
         }
         echo '45000';
     } else {
         parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:alexanderTsig,项目名称:arabic,代码行数:13,代码来源:targetpay-wap.php

示例12: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     $actionName = $request->getActionName();
     if ($actionName == 'fail') {
         $invoice = $this->getDi()->invoiceTable->findFirstByPublicId($request->getParam('m_orderid'));
         if (!$invoice) {
             throw new Am_Exception_InputError();
         }
         return Am_Controller::redirectLocation($this->getRootUrl() . "/cancel?id=" . $invoice->getSecureId('CANCEL'));
     } else {
         return parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:13,代码来源:payeer.php

示例13: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     switch ($request->getActionName()) {
         case self::ACTION_IPN:
             return parent::directAction($request, $response, $invokeArgs);
         case self::ACTION_UPDATE:
             return $this->updateAction($request, $response, $invokeArgs);
         case self::ACTION_CANCEL:
             return $this->doCancelAction($request, $response, $invokeArgs);
         case self::ACTION_ECHECK:
         default:
             return $this->echeckAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:14,代码来源:Echeck.php

示例14: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     if ($request->getActionName() == 'cancelpaysafecart') {
         // SEE par.3
         @(list($id, $code) = explode('-', filterId($request->getFiltered('id')), 2));
         $invoice = Am_Di::getInstance()->InvoiceTable->findFirstByPublicId(filterId($id));
         if (!$invoice) {
             throw new Am_Exception_InputError("No invoice found [{$id}]");
         }
         $invoice->setCancelled(true);
         $a = new Am_Paysystem_Action_HtmlTemplate_Paysafecard($this->getDir(), 'payment-paysafecard-cancel.phtml');
         $a->process(new Am_Controller($request, $response, $invokeArgs));
         // see par.3
     } else {
         parent::directAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:17,代码来源:paysafecard.php

示例15: directAction

 public function directAction(Am_Request $request, Zend_Controller_Response_Http $response, array $invokeArgs)
 {
     switch ($request->getActionName()) {
         case self::ACTION_IPN:
             return parent::directAction($request, $response, $invokeArgs);
         case self::ACTION_UPDATE:
             return $this->updateAction($request, $response, $invokeArgs);
         case self::ACTION_CANCEL:
             return $this->doCancelAction($request, $response, $invokeArgs);
         case self::ACTION_CANCEL_PAYMENT:
             return $this->cancelPaymentAction($request, $response, $invokeArgs);
         case self::ACTION_THANKS:
             return $this->thanksAction($request, $response, $invokeArgs);
         case self::ACTION_CC:
         default:
             return $this->ccAction($request, $response, $invokeArgs);
     }
 }
开发者ID:grlf,项目名称:eyedock,代码行数:18,代码来源:CreditCard.php


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