3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * PagSeguro Payment Module * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * * @category payment * @package BrunoAssarisse_PagSeguro * @copyright Copyright (c) 2010 Bruno Assarisse (www.assarisse.com.br) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @author Bruno Assarisse <bruno@assarisse.com.br> */ /** * PagSeguro Payment Controller * */ class BrunoAssarisse_PagSeguro_PayController extends Mage_Core_Controller_Front_Action { /** * Retorna o singleton do PagSeguro * * @return BrunoAssarisse_PagSeguro_Model_Payment */ public function getPagSeguro() { return Mage::getSingleton('brunoassarisse_pagseguro/payment'); } /** * Retorna o Checkout * * @return Mage_Checkout_Model_Session */ public function getCheckout() { return Mage::getSingleton('checkout/session'); } /** * Retorna ID da store, através do ID do pedido * */ function getOrderStoreId($orderId) { return Mage::getModel('sales/order')->load($orderId)->getStoreId(); } /** * Redireciona o cliente ao PagSeguro na finalização do pedido * */ public function redirectAction() { $pagseguro = $this->getPagSeguro(); $session = $this->getCheckout(); $orderId = $this->getRequest()->getParam('order_id'); if (empty($orderId)) { $orderId = $session->getLastOrderId(); $session->clear(); //Limpa o carrinho } $order = Mage::getModel('sales/order')->load($orderId); if ($order->getId()) { // Envia email de confirmação ao cliente if(!$order->getEmailSent()) { $order->sendNewOrderEmail(); $order->setEmailSent(true); $order->save(); } $order_redirect = false; if ($order->getPayment()->getMethod() == $pagseguro->getCode()) { switch ($order->getState()) { case Mage_Sales_Model_Order::STATE_NEW: // Grava ID do pedido na sessão e exibe formulário de redirecionamento do PagSeguro Mage::getSingleton("core/session")->setPagseguroOrderId($orderId); $html = $pagseguro->setOrder($order)->createRedirectForm(); $this->getResponse()->setHeader("Content-Type", "text/html; charset=ISO-8859-1", true); $this->getResponse()->setBody($html); break; case Mage_Sales_Model_Order::STATE_HOLDED: // Redireciona para impressão de boleto if ($order->getPayment()->getPagseguroPaymentMethod() == "Boleto") { $this->_redirectUrl($pagseguro->getPagSeguroBoletoUrl($order->getPayment()->getPagseguroTransactionId(), false)); break; } default: // Redireciona para página do pedido $order_redirect = true; break; } } else { $order_redirect = true; } if ($order_redirect) { $params = array(); $params['_secure'] = true; $params['order_id'] = $orderId; $this->_redirect('sales/order/view', $params); } } else { $this->_redirect(''); } } /** * Ação utilizada para duas finalidades: * - Redirecionar para a página de sucesso configurada, quando o comprador retorna à loja * - Receber e controlar as requisições do retorno automático de dados * */ public function returnAction() { $pagseguro = $this->getPagSeguro(); if ($this->getRequest()->isPost()) { // É um $_POST, processa o retorno automático $pagseguro->log("[ Inicio do retorno ]"); $pagseguro->retornoPagSeguro($this->getRequest()->getPost()); $pagseguro->log("[ Fim do retorno ]"); } else { // É um $_GET, redireciona para a página configurada $orderId = Mage::getSingleton("core/session")->getPagseguroOrderId(); if ($orderId) { $storeId = $this->getOrderStoreId($orderId); if ($pagseguro->getConfigData('use_return_page_cms', $storeId)) { $url = $pagseguro->getConfigData('return_page', $storeId); Mage::getSingleton("core/session")->setPagseguroOrderId(null); } else { $url = $pagseguro->getCode() . '/pay/success'; } } else { $url = ''; } $this->_redirect($url); } } /** * Exibe informações de conclusão do pagamento * */ public function successAction() { $orderId = $this->getRequest()->getParam('order_id'); if (!empty($orderId)) { Mage::getSingleton("core/session")->setPagseguroOrderId($orderId); } else { $orderId = Mage::getSingleton("core/session")->getPagseguroOrderId(); } if ($orderId) { $storeId = $this->getOrderStoreId($orderId); $pagseguro = $this->getPagSeguro(); if ($pagseguro->getConfigData('use_return_page_cms', $storeId)) { $this->_redirect($pagseguro->getConfigData('return_page', $storeId)); } else { $this->loadLayout(); $this->renderLayout(); } Mage::getSingleton("core/session")->setPagseguroOrderId(null); } else { $this->_redirect(''); } } /** * Retorna bloco de parcelamento de acordo * com a mudança de preço do produto. * */ public function installmentsAction() { $this->loadLayout(); $this->renderLayout(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYYuB
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   DECLARE_CLASS                                            'brunoassarisse_pagseguro_paycontroller', 'mage_core_controller_front_action'
  205     1      > RETURN                                                   1

Class BrunoAssarisse_PagSeguro_PayController:
Function getpagseguro:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYYuB
function name:  getPagSeguro
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
          1        SEND_VAL_EX                                              'brunoassarisse_pagseguro%2Fpayment'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
   33     4*     > RETURN                                                   null

End of function getpagseguro

Function getcheckout:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYYuB
function name:  getCheckout
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   42     0  E >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
          1        SEND_VAL_EX                                              'checkout%2Fsession'
          2        DO_FCALL                                      0  $0      
          3      > RETURN                                                   $0
   43     4*     > RETURN                                                   null

End of function getcheckout

Function getorderstoreid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYYuB
function name:  getOrderStoreId
number of ops:  11
compiled vars:  !0 = $orderId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   49     0  E >   RECV                                             !0      
   50     1        INIT_STATIC_METHOD_CALL                                  'Mage', 'getModel'
          2        SEND_VAL_EX                                              'sales%2Forder'
          3        DO_FCALL                                      0  $1      
          4        INIT_METHOD_CALL                                         $1, 'load'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $2      
          7        INIT_METHOD_CALL                                         $2, 'getStoreId'
          8        DO_FCALL                                      0  $3      
          9      > RETURN                                                   $3
   51    10*     > RETURN                                                   null

End of function getorderstoreid

Function redirectaction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 117
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 40
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 105
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 58
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 83
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 101
Branch analysis from position: 101
1 jumps found. (Code = 42) Position 1 = 103
Branch analysis from position: 103
1 jumps found. (Code = 42) Position 1 = 106
Branch analysis from position: 106
2 jumps found. (Code = 43) Position 1 = 107, Position 2 = 116
Branch analysis from position: 107
1 jumps found. (Code = 42) Position 1 = 120
Branch analysis from position: 120
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 116
Branch analysis from position: 83
2 jumps found. (Code = 43) Position 1 = 89, Position 2 = 101
Branch analysis from position: 89
1 jumps found. (Code = 42) Position 1 = 103
Branch analysis from position: 103
Branch analysis from position: 101
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 103
Branch analysis from position: 103
Branch analysis from position: 105
2 jumps found. (Code = 43) Position 1 = 107, Position 2 = 116
Branch analysis from position: 107
Branch analysis from position: 116
Branch analysis from position: 40
Branch analysis from position: 117
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/GYYuB
function name:  redirectAction
number of ops:  121
compiled vars:  !0 = $pagseguro, !1 = $session, !2 = $orderId, !3 = $order, !4 = $order_redirect, !5 = $html, !6 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   59     0  E >   INIT_METHOD_CALL                                         'getPagSeguro'
          1        DO_FCALL                                      0  $7      
          2        ASSIGN                                                   !0, $7
   60     3        INIT_METHOD_CALL                                         'getCheckout'
          4        DO_FCALL                                      0  $9      
          5        ASSIGN                                                   !1, $9
   61     6        INIT_METHOD_CALL                                         'getRequest'
          7        DO_FCALL                                      0  $11     
          8        INIT_METHOD_CALL                                         $11, 'getParam'
          9        SEND_VAL_EX                                              'order_id'
         10        DO_FCALL                                      0  $12     
         11        ASSIGN                                                   !2, $12
   63    12        ISSET_ISEMPTY_CV                                         !2
         13      > JMPZ                                                     ~14, ->19
   64    14    >   INIT_METHOD_CALL                                         !1, 'getLastOrderId'
         15        DO_FCALL                                      0  $15     
         16        ASSIGN                                                   !2, $15
   65    17        INIT_METHOD_CALL                                         !1, 'clear'
         18        DO_FCALL                                      0          
   68    19    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getModel'
         20        SEND_VAL_EX                                              'sales%2Forder'
         21        DO_FCALL                                      0  $18     
         22        INIT_METHOD_CALL                                         $18, 'load'
         23        SEND_VAR_EX                                              !2
         24        DO_FCALL                                      0  $19     
         25        ASSIGN                                                   !3, $19
   70    26        INIT_METHOD_CALL                                         !3, 'getId'
         27        DO_FCALL                                      0  $21     
         28      > JMPZ                                                     $21, ->117
   73    29    >   INIT_METHOD_CALL                                         !3, 'getEmailSent'
         30        DO_FCALL                                      0  $22     
         31        BOOL_NOT                                         ~23     $22
         32      > JMPZ                                                     ~23, ->40
   74    33    >   INIT_METHOD_CALL                                         !3, 'sendNewOrderEmail'
         34        DO_FCALL                                      0          
   75    35        INIT_METHOD_CALL                                         !3, 'setEmailSent'
         36        SEND_VAL_EX                                              <true>
         37        DO_FCALL                                      0          
   76    38        INIT_METHOD_CALL                                         !3, 'save'
         39        DO_FCALL                                      0          
   79    40    >   ASSIGN                                                   !4, <false>
   82    41        INIT_METHOD_CALL                                         !3, 'getPayment'
         42        DO_FCALL                                      0  $28     
         43        INIT_METHOD_CALL                                         $28, 'getMethod'
         44        DO_FCALL                                      0  $29     
         45        INIT_METHOD_CALL                                         !0, 'getCode'
         46        DO_FCALL                                      0  $30     
         47        IS_EQUAL                                                 $29, $30
         48      > JMPZ                                                     ~31, ->105
   84    49    >   INIT_METHOD_CALL                                         !3, 'getState'
         50        DO_FCALL                                      0  $32     
   86    51        FETCH_CLASS_CONSTANT                             ~34     'Mage_Sales_Model_Order', 'STATE_NEW'
         52        CASE                                                     $32, ~34
         53      > JMPNZ                                                    ~33, ->58
   96    54    >   FETCH_CLASS_CONSTANT                             ~35     'Mage_Sales_Model_Order', 'STATE_HOLDED'
         55        CASE                                                     $32, ~35
         56      > JMPNZ                                                    ~33, ->83
         57    > > JMP                                                      ->101
   88    58    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
         59        SEND_VAL_EX                                              'core%2Fsession'
         60        DO_FCALL                                      0  $36     
         61        INIT_METHOD_CALL                                         $36, 'setPagseguroOrderId'
         62        SEND_VAR_EX                                              !2
         63        DO_FCALL                                      0          
   90    64        INIT_METHOD_CALL                                         !0, 'setOrder'
         65        SEND_VAR_EX                                              !3
         66        DO_FCALL                                      0  $38     
         67        INIT_METHOD_CALL                                         $38, 'createRedirectForm'
         68        DO_FCALL                                      0  $39     
         69        ASSIGN                                                   !5, $39
   92    70        INIT_METHOD_CALL                                         'getResponse'
         71        DO_FCALL                                      0  $41     
         72        INIT_METHOD_CALL                                         $41, 'setHeader'
         73        SEND_VAL_EX                                              'Content-Type'
         74        SEND_VAL_EX                                              'text%2Fhtml%3B+charset%3DISO-8859-1'
         75        SEND_VAL_EX                                              <true>
         76        DO_FCALL                                      0          
   93    77        INIT_METHOD_CALL                                         'getResponse'
         78        DO_FCALL                                      0  $43     
         79        INIT_METHOD_CALL                                         $43, 'setBody'
         80        SEND_VAR_EX                                              !5
         81        DO_FCALL                                      0          
   94    82      > JMP                                                      ->103
   98    83    >   INIT_METHOD_CALL                                         !3, 'getPayment'
         84        DO_FCALL                                      0  $45     
         85        INIT_METHOD_CALL                                         $45, 'getPagseguroPaymentMethod'
         86        DO_FCALL                                      0  $46     
         87        IS_EQUAL                                                 $46, 'Boleto'
         88      > JMPZ                                                     ~47, ->101
   99    89    >   INIT_METHOD_CALL                                         '_redirectUrl'
         90        INIT_METHOD_CALL                                         !0, 'getPagSeguroBoletoUrl'
         91        INIT_METHOD_CALL                                         !3, 'getPayment'
         92        DO_FCALL                                      0  $48     
         93        INIT_METHOD_CALL                                         $48, 'getPagseguroTransactionId'
         94        DO_FCALL                                      0  $49     
         95        SEND_VAR_NO_REF_EX                                       $49
         96        SEND_VAL_EX                                              <false>
         97        DO_FCALL                                      0  $50     
         98        SEND_VAR_NO_REF_EX                                       $50
         99        DO_FCALL                                      0          
  100   100      > JMP                                                      ->103
  105   101    >   ASSIGN                                                   !4, <true>
  106   102      > JMP                                                      ->103
        103    >   FREE                                                     $32
        104      > JMP                                                      ->106
  110   105    >   ASSIGN                                                   !4, <true>
  113   106    > > JMPZ                                                     !4, ->116
  114   107    >   ASSIGN                                                   !6, <array>
  115   108        ASSIGN_DIM                                               !6, '_secure'
        109        OP_DATA                                                  <true>
  116   110        ASSIGN_DIM                                               !6, 'order_id'
        111        OP_DATA                                                  !2
  117   112        INIT_METHOD_CALL                                         '_redirect'
        113        SEND_VAL_EX                                              'sales%2Forder%2Fview'
        114        SEND_VAR_EX                                              !6
        115        DO_FCALL                                      0          
        116    > > JMP                                                      ->120
  121   117    >   INIT_METHOD_CALL                                         '_redirect'
        118        SEND_VAL_EX                                              ''
        119        DO_FCALL                                      0          
  123   120    > > RETURN                                                   null

End of function redirectaction

Function returnaction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 22
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 55
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 50
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYYuB
function name:  returnAction
number of ops:  60
compiled vars:  !0 = $pagseguro, !1 = $orderId, !2 = $storeId, !3 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  133     0  E >   INIT_METHOD_CALL                                         'getPagSeguro'
          1        DO_FCALL                                      0  $4      
          2        ASSIGN                                                   !0, $4
  135     3        INIT_METHOD_CALL                                         'getRequest'
          4        DO_FCALL                                      0  $6      
          5        INIT_METHOD_CALL                                         $6, 'isPost'
          6        DO_FCALL                                      0  $7      
          7      > JMPZ                                                     $7, ->22
  138     8    >   INIT_METHOD_CALL                                         !0, 'log'
          9        SEND_VAL_EX                                              '%5B+Inicio+do+retorno+%5D'
         10        DO_FCALL                                      0          
  139    11        INIT_METHOD_CALL                                         !0, 'retornoPagSeguro'
         12        INIT_METHOD_CALL                                         'getRequest'
         13        DO_FCALL                                      0  $9      
         14        INIT_METHOD_CALL                                         $9, 'getPost'
         15        DO_FCALL                                      0  $10     
         16        SEND_VAR_NO_REF_EX                                       $10
         17        DO_FCALL                                      0          
  140    18        INIT_METHOD_CALL                                         !0, 'log'
         19        SEND_VAL_EX                                              '%5B+Fim+do+retorno+%5D'
         20        DO_FCALL                                      0          
         21      > JMP                                                      ->59
  145    22    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
         23        SEND_VAL_EX                                              'core%2Fsession'
         24        DO_FCALL                                      0  $13     
         25        INIT_METHOD_CALL                                         $13, 'getPagseguroOrderId'
         26        DO_FCALL                                      0  $14     
         27        ASSIGN                                                   !1, $14
  147    28      > JMPZ                                                     !1, ->55
  148    29    >   INIT_METHOD_CALL                                         'getOrderStoreId'
         30        SEND_VAR_EX                                              !1
         31        DO_FCALL                                      0  $16     
         32        ASSIGN                                                   !2, $16
  150    33        INIT_METHOD_CALL                                         !0, 'getConfigData'
         34        SEND_VAL_EX                                              'use_return_page_cms'
         35        SEND_VAR_EX                                              !2
         36        DO_FCALL                                      0  $18     
         37      > JMPZ                                                     $18, ->50
  151    38    >   INIT_METHOD_CALL                                         !0, 'getConfigData'
         39        SEND_VAL_EX                                              'return_page'
         40        SEND_VAR_EX                                              !2
         41        DO_FCALL                                      0  $19     
         42        ASSIGN                                                   !3, $19
  152    43        INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
         44        SEND_VAL_EX                                              'core%2Fsession'
         45        DO_FCALL                                      0  $21     
         46        INIT_METHOD_CALL                                         $21, 'setPagseguroOrderId'
         47        SEND_VAL_EX                                              null
         48        DO_FCALL                                      0          
         49      > JMP                                                      ->54
  154    50    >   INIT_METHOD_CALL                                         !0, 'getCode'
         51        DO_FCALL                                      0  $23     
         52        CONCAT                                           ~24     $23, '%2Fpay%2Fsuccess'
         53        ASSIGN                                                   !3, ~24
         54    > > JMP                                                      ->56
  157    55    >   ASSIGN                                                   !3, ''
  159    56    >   INIT_METHOD_CALL                                         '_redirect'
         57        SEND_VAR_EX                                              !3
         58        DO_FCALL                                      0          
  162    59    > > RETURN                                                   null

End of function returnaction

Function successaction:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 54
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 43
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 54
Branch analysis from position: 23
Branch analysis from position: 54
filename:       /in/GYYuB
function name:  successAction
number of ops:  58
compiled vars:  !0 = $orderId, !1 = $storeId, !2 = $pagseguro
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  170     0  E >   INIT_METHOD_CALL                                         'getRequest'
          1        DO_FCALL                                      0  $3      
          2        INIT_METHOD_CALL                                         $3, 'getParam'
          3        SEND_VAL_EX                                              'order_id'
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !0, $4
  171     6        ISSET_ISEMPTY_CV                                 ~6      !0
          7        BOOL_NOT                                         ~7      ~6
          8      > JMPZ                                                     ~7, ->16
  172     9    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
         10        SEND_VAL_EX                                              'core%2Fsession'
         11        DO_FCALL                                      0  $8      
         12        INIT_METHOD_CALL                                         $8, 'setPagseguroOrderId'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
         15      > JMP                                                      ->22
  174    16    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
         17        SEND_VAL_EX                                              'core%2Fsession'
         18        DO_FCALL                                      0  $10     
         19        INIT_METHOD_CALL                                         $10, 'getPagseguroOrderId'
         20        DO_FCALL                                      0  $11     
         21        ASSIGN                                                   !0, $11
  177    22    > > JMPZ                                                     !0, ->54
  178    23    >   INIT_METHOD_CALL                                         'getOrderStoreId'
         24        SEND_VAR_EX                                              !0
         25        DO_FCALL                                      0  $13     
         26        ASSIGN                                                   !1, $13
  180    27        INIT_METHOD_CALL                                         'getPagSeguro'
         28        DO_FCALL                                      0  $15     
         29        ASSIGN                                                   !2, $15
  181    30        INIT_METHOD_CALL                                         !2, 'getConfigData'
         31        SEND_VAL_EX                                              'use_return_page_cms'
         32        SEND_VAR_EX                                              !1
         33        DO_FCALL                                      0  $17     
         34      > JMPZ                                                     $17, ->43
  182    35    >   INIT_METHOD_CALL                                         '_redirect'
         36        INIT_METHOD_CALL                                         !2, 'getConfigData'
         37        SEND_VAL_EX                                              'return_page'
         38        SEND_VAR_EX                                              !1
         39        DO_FCALL                                      0  $18     
         40        SEND_VAR_NO_REF_EX                                       $18
         41        DO_FCALL                                      0          
         42      > JMP                                                      ->47
  184    43    >   INIT_METHOD_CALL                                         'loadLayout'
         44        DO_FCALL                                      0          
  185    45        INIT_METHOD_CALL                                         'renderLayout'
         46        DO_FCALL                                      0          
  188    47    >   INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
         48        SEND_VAL_EX                                              'core%2Fsession'
         49        DO_FCALL                                      0  $22     
         50        INIT_METHOD_CALL                                         $22, 'setPagseguroOrderId'
         51        SEND_VAL_EX                                              null
         52        DO_FCALL                                      0          
         53      > JMP                                                      ->57
  190    54    >   INIT_METHOD_CALL                                         '_redirect'
         55        SEND_VAL_EX                                              ''
         56        DO_FCALL                                      0          
  192    57    > > RETURN                                                   null

End of function successaction

Function installmentsaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GYYuB
function name:  installmentsAction
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  202     0  E >   INIT_METHOD_CALL                                         'loadLayout'
          1        DO_FCALL                                      0          
  203     2        INIT_METHOD_CALL                                         'renderLayout'
          3        DO_FCALL                                      0          
  204     4      > RETURN                                                   null

End of function installmentsaction

End of class BrunoAssarisse_PagSeguro_PayController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.15 ms | 1423 KiB | 13 Q