3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'abstract.php'; class Mage_Shell_Export extends Mage_Shell_Abstract { private $exportpath = 'order_export'; private $exportStatus = 'processing'; private $afterExportStatus = 'exported'; /** * @var Mage_Sales_Model_Order */ private $Order; public function __construct() { parent::__construct(); $this->exportpath = $this->_getRootPath() . $this->exportpath; $this->Order = new Mage_Sales_Model_Order; } public function run() { /** @var Mage_Sales_Model_Resource_Order_Collection $collection */ $collection = $this->Order->getResourceCollection() ->addAttributeToFilter('status', array('neq' => $this->afterExportStatus)) ; /** @var Mage_Sales_Model_Order $order */ foreach($collection AS $order) { $order = $order->loadByIncrementId($order->getIncrementId()); $lines = $this->createCsv($order); $this->setOrderExported($order); $filename = sprintf( '%s/%s.csv', $this->exportpath, $order->getIncrementId() ); $handle = fopen($filename, 'c'); flock($handle, LOCK_EX); foreach ($lines as $line) { fputcsv($handle, $line, ';', '"'); } flock($handle, LOCK_UN); exec('chmod 777 "' . $filename . '"'); } } /** * @param Mage_Sales_Model_Order $order */ private function setOrderExported(Mage_Sales_Model_Order $order) { $order->setStatus($this->afterExportStatus); $order->save(); } private function createCsv(Mage_Sales_Model_Order $order) { $lines = array(); // Line 1 // Customer labels $lines[] = array( 'firstname', 'lastname', 'street1', 'street2', 'street3', 'street4', 'company', 'zipcode', 'city', 'region', 'country', 'phonenumber', 'mobilenumber', 'email', 'vat number', 'ref number', ); // Line 2 // Billing address /** @var Mage_Sales_Model_Order_Address $billing */ $billing = $order->getBillingAddress(); $lines[] = array( $billing->getData('firstname'), $billing->getLastname(), $billing->getStreet1(), $billing->getStreet2(), $billing->getStreet3(), $billing->getStreet4(), $billing->getCompany(), $billing->getPostcode(), $billing->getCity(), ($billing->getRegion() === null ? '' : $billing->getRegion()), $billing->getCountry(), $billing->getTelephone(), $billing->getFax(), $billing->getEmail(), $billing->getData('vat_id'), $order->getOrderreference() ); // Line 3 // Delivery address /** @var Mage_Sales_Model_Order_Address $shipping */ $shipping = $order->getShippingAddress(); $lines[] = array( $shipping->getData('firstname'), $shipping->getLastname(), $shipping->getStreet1(), $shipping->getStreet2(), $shipping->getStreet3(), $shipping->getStreet4(), $shipping->getCompany(), $shipping->getPostcode(), $shipping->getCity(), ($shipping->getRegion() === null ? '' : $shipping->getRegion()), $shipping->getCountry(), $shipping->getTelephone(), $shipping->getFax(), $shipping->getEmail(), $shipping->getData('vat_id'), $order->getOrderreference() ); // Line 4 // Order total labels $lines[] = array( 'Payment method', 'Payment EAN', 'Shipping method', 'Comment', 'Total products ordered', 'Shipping amount', 'Tax amount', 'Subtotal excl tax', 'Grand total incl tax', 'Card type' ); // Added to fetch "Card Type" from DB $read = Mage::getSingleton('core/resource')->getConnection('core_read'); $resource = Mage::getSingleton('core/resource'); $table = $resource->getTableName('quickpaypayment_order_status'); $row = $this->paymentData = $read->fetchRow("select * from " . $table . " where ordernum = " . $this->getInfo()->getOrder()->getIncrementId()); $ean = ''; $cardtype = ''; $payment = $order->getPayment()->getData('method'); if ($payment == 'purchaseorder') { $ean = $order->getPayment()->getData('po_number'); } if ($payment == 'quickpaypayment_payment') { $cardtype = $row['cardtype']; } // Line 5 // Order total $lines[] = array( $payment, $ean, $order->getShippingMethod(), str_replace("\n", " ", $order->getData('customer_note')), $order->getTotalQtyOrdered(), $order->getShippingAmount(), $order->getTaxAmount(), $order->getGrandTotal() - $order->getTaxAmount(), $order->getGrandTotal(), $cardtype ); // Line 6 // Product labels $lines[] = array( 'Image', 'SKU', 'Name', 'Qty ordered', 'Piece price excl tax', 'Row total excl tax', 'Options' ); // Line 7+ // Product info $items = $order->getItemsCollection(); foreach($items as $item) { /** @var Mage_Sales_Model_Order_Item $item */ if ($item->getParentItemId() !== null) { continue; } $data = array(); $data[] = $item->getProduct()->getData('image'); $data[] = $item->getSku(); $data[] = $item->getName(); $data[] = $item->getQtyOrdered(); $data[] = $item->getPrice(); $data[] = $item->getBaseRowTotal(); if ($item->getProductOptions()) { $itemoptions = $item->getProductOptions(); if (array_key_exists('attributes_info', $itemoptions)) { $options = array(); foreach ($itemoptions['attributes_info'] as $opt) { $options[] = sprintf('%s:%s', $opt['label'], $opt['value']); } $data[] = implode(',', $options); } } $lines[] = $data; } return $lines; } /** * Retrieve Usage Help Message * */ public function usageHelp() { return <<<USAGE Usage: php -f export.php USAGE; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eHS5m
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          'abstract.php', REQUIRE_ONCE
    4     1        DECLARE_CLASS                                            'mage_shell_export', 'mage_shell_abstract'
  241     2      > RETURN                                                   1

Class Mage_Shell_Export:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eHS5m
function name:  __construct
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
   21     2        INIT_METHOD_CALL                                         '_getRootPath'
          3        DO_FCALL                                      0  $2      
          4        FETCH_OBJ_R                                      ~3      'exportpath'
          5        CONCAT                                           ~4      $2, ~3
          6        ASSIGN_OBJ                                               'exportpath'
          7        OP_DATA                                                  ~4
   22     8        NEW                                              $6      'Mage_Sales_Model_Order'
          9        DO_FCALL                                      0          
         10        ASSIGN_OBJ                                               'Order'
         11        OP_DATA                                                  $6
   23    12      > RETURN                                                   null

End of function __construct

Function run:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 63
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 63
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 44, Position 2 = 52
Branch analysis from position: 44
2 jumps found. (Code = 78) Position 1 = 45, Position 2 = 52
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 52
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
filename:       /in/eHS5m
function name:  run
number of ops:  65
compiled vars:  !0 = $collection, !1 = $order, !2 = $lines, !3 = $filename, !4 = $handle, !5 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   FETCH_OBJ_R                                      ~6      'Order'
          1        INIT_METHOD_CALL                                         ~6, 'getResourceCollection'
          2        DO_FCALL                                      0  $7      
   29     3        INIT_METHOD_CALL                                         $7, 'addAttributeToFilter'
          4        SEND_VAL_EX                                              'status'
          5        FETCH_OBJ_R                                      ~8      'afterExportStatus'
          6        INIT_ARRAY                                       ~9      ~8, 'neq'
          7        SEND_VAL_EX                                              ~9
          8        DO_FCALL                                      0  $10     
   28     9        ASSIGN                                                   !0, $10
   33    10      > FE_RESET_R                                       $12     !0, ->63
         11    > > FE_FETCH_R                                               $12, !1, ->63
   34    12    >   INIT_METHOD_CALL                                         !1, 'loadByIncrementId'
         13        INIT_METHOD_CALL                                         !1, 'getIncrementId'
         14        DO_FCALL                                      0  $13     
         15        SEND_VAR_NO_REF_EX                                       $13
         16        DO_FCALL                                      0  $14     
         17        ASSIGN                                                   !1, $14
   35    18        INIT_METHOD_CALL                                         'createCsv'
         19        SEND_VAR_EX                                              !1
         20        DO_FCALL                                      0  $16     
         21        ASSIGN                                                   !2, $16
   36    22        INIT_METHOD_CALL                                         'setOrderExported'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0          
   38    25        INIT_FCALL                                               'sprintf'
   39    26        SEND_VAL                                                 '%25s%2F%25s.csv'
   40    27        FETCH_OBJ_R                                      ~19     'exportpath'
         28        SEND_VAL                                                 ~19
   41    29        INIT_METHOD_CALL                                         !1, 'getIncrementId'
         30        DO_FCALL                                      0  $20     
         31        SEND_VAR                                                 $20
         32        DO_ICALL                                         $21     
   38    33        ASSIGN                                                   !3, $21
   43    34        INIT_FCALL                                               'fopen'
         35        SEND_VAR                                                 !3
         36        SEND_VAL                                                 'c'
         37        DO_ICALL                                         $23     
         38        ASSIGN                                                   !4, $23
   44    39        INIT_FCALL                                               'flock'
         40        SEND_VAR                                                 !4
         41        SEND_VAL                                                 2
         42        DO_ICALL                                                 
   45    43      > FE_RESET_R                                       $26     !2, ->52
         44    > > FE_FETCH_R                                               $26, !5, ->52
   46    45    >   INIT_FCALL                                               'fputcsv'
         46        SEND_VAR                                                 !4
         47        SEND_VAR                                                 !5
         48        SEND_VAL                                                 '%3B'
         49        SEND_VAL                                                 '%22'
         50        DO_ICALL                                                 
   45    51      > JMP                                                      ->44
         52    >   FE_FREE                                                  $26
   48    53        INIT_FCALL                                               'flock'
         54        SEND_VAR                                                 !4
         55        SEND_VAL                                                 3
         56        DO_ICALL                                                 
   49    57        INIT_FCALL                                               'exec'
         58        CONCAT                                           ~29     'chmod+777+%22', !3
         59        CONCAT                                           ~30     ~29, '%22'
         60        SEND_VAL                                                 ~30
         61        DO_ICALL                                                 
   33    62      > JMP                                                      ->11
         63    >   FE_FREE                                                  $12
   54    64      > RETURN                                                   null

End of function run

Function setorderexported:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eHS5m
function name:  setOrderExported
number of ops:  9
compiled vars:  !0 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   59     0  E >   RECV                                             !0      
   61     1        INIT_METHOD_CALL                                         !0, 'setStatus'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_OBJ_FUNC_ARG                               $1      'afterExportStatus'
          4        SEND_FUNC_ARG                                            $1
          5        DO_FCALL                                      0          
   62     6        INIT_METHOD_CALL                                         !0, 'save'
          7        DO_FCALL                                      0          
   63     8      > RETURN                                                   null

End of function setorderexported

Function createcsv:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 101, Position 2 = 103
Branch analysis from position: 101
1 jumps found. (Code = 42) Position 1 = 106
Branch analysis from position: 106
2 jumps found. (Code = 43) Position 1 = 170, Position 2 = 176
Branch analysis from position: 170
2 jumps found. (Code = 43) Position 1 = 178, Position 2 = 180
Branch analysis from position: 178
2 jumps found. (Code = 77) Position 1 = 221, Position 2 = 287
Branch analysis from position: 221
2 jumps found. (Code = 78) Position 1 = 222, Position 2 = 287
Branch analysis from position: 222
2 jumps found. (Code = 43) Position 1 = 226, Position 2 = 227
Branch analysis from position: 226
1 jumps found. (Code = 42) Position 1 = 221
Branch analysis from position: 221
Branch analysis from position: 227
2 jumps found. (Code = 43) Position 1 = 258, Position 2 = 284
Branch analysis from position: 258
2 jumps found. (Code = 43) Position 1 = 263, Position 2 = 284
Branch analysis from position: 263
2 jumps found. (Code = 77) Position 1 = 266, Position 2 = 277
Branch analysis from position: 266
2 jumps found. (Code = 78) Position 1 = 267, Position 2 = 277
Branch analysis from position: 267
1 jumps found. (Code = 42) Position 1 = 266
Branch analysis from position: 266
Branch analysis from position: 277
1 jumps found. (Code = 42) Position 1 = 221
Branch analysis from position: 221
Branch analysis from position: 277
Branch analysis from position: 284
Branch analysis from position: 284
Branch analysis from position: 287
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 287
Branch analysis from position: 180
Branch analysis from position: 176
Branch analysis from position: 103
2 jumps found. (Code = 43) Position 1 = 170, Position 2 = 176
Branch analysis from position: 170
Branch analysis from position: 176
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 101, Position 2 = 103
Branch analysis from position: 101
Branch analysis from position: 103
filename:       /in/eHS5m
function name:  createCsv
number of ops:  290
compiled vars:  !0 = $order, !1 = $lines, !2 = $billing, !3 = $shipping, !4 = $read, !5 = $resource, !6 = $table, !7 = $row, !8 = $ean, !9 = $cardtype, !10 = $payment, !11 = $items, !12 = $item, !13 = $data, !14 = $itemoptions, !15 = $options, !16 = $opt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   65     0  E >   RECV                                             !0      
   67     1        ASSIGN                                                   !1, <array>
   70     2        ASSIGN_DIM                                               !1
   71     3        OP_DATA                                                  <array>
   92     4        INIT_METHOD_CALL                                         !0, 'getBillingAddress'
          5        DO_FCALL                                      0  $19     
          6        ASSIGN                                                   !2, $19
   95     7        INIT_METHOD_CALL                                         !2, 'getData'
          8        SEND_VAL_EX                                              'firstname'
          9        DO_FCALL                                      0  $22     
         10        INIT_ARRAY                                       ~23     $22
   96    11        INIT_METHOD_CALL                                         !2, 'getLastname'
         12        DO_FCALL                                      0  $24     
         13        ADD_ARRAY_ELEMENT                                ~23     $24
   97    14        INIT_METHOD_CALL                                         !2, 'getStreet1'
         15        DO_FCALL                                      0  $25     
         16        ADD_ARRAY_ELEMENT                                ~23     $25
   98    17        INIT_METHOD_CALL                                         !2, 'getStreet2'
         18        DO_FCALL                                      0  $26     
         19        ADD_ARRAY_ELEMENT                                ~23     $26
   99    20        INIT_METHOD_CALL                                         !2, 'getStreet3'
         21        DO_FCALL                                      0  $27     
         22        ADD_ARRAY_ELEMENT                                ~23     $27
  100    23        INIT_METHOD_CALL                                         !2, 'getStreet4'
         24        DO_FCALL                                      0  $28     
         25        ADD_ARRAY_ELEMENT                                ~23     $28
  101    26        INIT_METHOD_CALL                                         !2, 'getCompany'
         27        DO_FCALL                                      0  $29     
         28        ADD_ARRAY_ELEMENT                                ~23     $29
  102    29        INIT_METHOD_CALL                                         !2, 'getPostcode'
         30        DO_FCALL                                      0  $30     
         31        ADD_ARRAY_ELEMENT                                ~23     $30
  103    32        INIT_METHOD_CALL                                         !2, 'getCity'
         33        DO_FCALL                                      0  $31     
         34        ADD_ARRAY_ELEMENT                                ~23     $31
  104    35        INIT_METHOD_CALL                                         !2, 'getRegion'
         36        DO_FCALL                                      0  $32     
   95    37        TYPE_CHECK                                    2          $32
         38      > JMPZ                                                     ~33, ->41
  104    39    >   QM_ASSIGN                                        ~34     ''
         40      > JMP                                                      ->44
         41    >   INIT_METHOD_CALL                                         !2, 'getRegion'
         42        DO_FCALL                                      0  $35     
         43        QM_ASSIGN                                        ~34     $35
         44    >   ADD_ARRAY_ELEMENT                                ~23     ~34
  105    45        INIT_METHOD_CALL                                         !2, 'getCountry'
         46        DO_FCALL                                      0  $36     
         47        ADD_ARRAY_ELEMENT                                ~23     $36
  106    48        INIT_METHOD_CALL                                         !2, 'getTelephone'
         49        DO_FCALL                                      0  $37     
         50        ADD_ARRAY_ELEMENT                                ~23     $37
  107    51        INIT_METHOD_CALL                                         !2, 'getFax'
         52        DO_FCALL                                      0  $38     
         53        ADD_ARRAY_ELEMENT                                ~23     $38
  108    54        INIT_METHOD_CALL                                         !2, 'getEmail'
         55        DO_FCALL                                      0  $39     
         56        ADD_ARRAY_ELEMENT                                ~23     $39
  109    57        INIT_METHOD_CALL                                         !2, 'getData'
         58        SEND_VAL_EX                                              'vat_id'
         59        DO_FCALL                                      0  $40     
         60        ADD_ARRAY_ELEMENT                                ~23     $40
  110    61        INIT_METHOD_CALL                                         !0, 'getOrderreference'
         62        DO_FCALL                                      0  $41     
         63        ADD_ARRAY_ELEMENT                                ~23     $41
   94    64        ASSIGN_DIM                                               !1
  110    65        OP_DATA                                                  ~23
  116    66        INIT_METHOD_CALL                                         !0, 'getShippingAddress'
         67        DO_FCALL                                      0  $42     
         68        ASSIGN                                                   !3, $42
  118    69        INIT_METHOD_CALL                                         !3, 'getData'
         70        SEND_VAL_EX                                              'firstname'
         71        DO_FCALL                                      0  $45     
         72        INIT_ARRAY                                       ~46     $45
  119    73        INIT_METHOD_CALL                                         !3, 'getLastname'
         74        DO_FCALL                                      0  $47     
         75        ADD_ARRAY_ELEMENT                                ~46     $47
  120    76        INIT_METHOD_CALL                                         !3, 'getStreet1'
         77        DO_FCALL                                      0  $48     
         78        ADD_ARRAY_ELEMENT                                ~46     $48
  121    79        INIT_METHOD_CALL                                         !3, 'getStreet2'
         80        DO_FCALL                                      0  $49     
         81        ADD_ARRAY_ELEMENT                                ~46     $49
  122    82        INIT_METHOD_CALL                                         !3, 'getStreet3'
         83        DO_FCALL                                      0  $50     
         84        ADD_ARRAY_ELEMENT                                ~46     $50
  123    85        INIT_METHOD_CALL                                         !3, 'getStreet4'
         86        DO_FCALL                                      0  $51     
         87        ADD_ARRAY_ELEMENT                                ~46     $51
  124    88        INIT_METHOD_CALL                                         !3, 'getCompany'
         89        DO_FCALL                                      0  $52     
         90        ADD_ARRAY_ELEMENT                                ~46     $52
  125    91        INIT_METHOD_CALL                                         !3, 'getPostcode'
         92        DO_FCALL                                      0  $53     
         93        ADD_ARRAY_ELEMENT                                ~46     $53
  126    94        INIT_METHOD_CALL                                         !3, 'getCity'
         95        DO_FCALL                                      0  $54     
         96        ADD_ARRAY_ELEMENT                                ~46     $54
  127    97        INIT_METHOD_CALL                                         !3, 'getRegion'
         98        DO_FCALL                                      0  $55     
  118    99        TYPE_CHECK                                    2          $55
        100      > JMPZ                                                     ~56, ->103
  127   101    >   QM_ASSIGN                                        ~57     ''
        102      > JMP                                                      ->106
        103    >   INIT_METHOD_CALL                                         !3, 'getRegion'
        104        DO_FCALL                                      0  $58     
        105        QM_ASSIGN                                        ~57     $58
        106    >   ADD_ARRAY_ELEMENT                                ~46     ~57
  128   107        INIT_METHOD_CALL                                         !3, 'getCountry'
        108        DO_FCALL                                      0  $59     
        109        ADD_ARRAY_ELEMENT                                ~46     $59
  129   110        INIT_METHOD_CALL                                         !3, 'getTelephone'
        111        DO_FCALL                                      0  $60     
        112        ADD_ARRAY_ELEMENT                                ~46     $60
  130   113        INIT_METHOD_CALL                                         !3, 'getFax'
        114        DO_FCALL                                      0  $61     
        115        ADD_ARRAY_ELEMENT                                ~46     $61
  131   116        INIT_METHOD_CALL                                         !3, 'getEmail'
        117        DO_FCALL                                      0  $62     
        118        ADD_ARRAY_ELEMENT                                ~46     $62
  132   119        INIT_METHOD_CALL                                         !3, 'getData'
        120        SEND_VAL_EX                                              'vat_id'
        121        DO_FCALL                                      0  $63     
        122        ADD_ARRAY_ELEMENT                                ~46     $63
  133   123        INIT_METHOD_CALL                                         !0, 'getOrderreference'
        124        DO_FCALL                                      0  $64     
        125        ADD_ARRAY_ELEMENT                                ~46     $64
  117   126        ASSIGN_DIM                                               !1
  133   127        OP_DATA                                                  ~46
  138   128        ASSIGN_DIM                                               !1
  139   129        OP_DATA                                                  <array>
  152   130        INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
        131        SEND_VAL_EX                                              'core%2Fresource'
        132        DO_FCALL                                      0  $66     
        133        INIT_METHOD_CALL                                         $66, 'getConnection'
        134        SEND_VAL_EX                                              'core_read'
        135        DO_FCALL                                      0  $67     
        136        ASSIGN                                                   !4, $67
  153   137        INIT_STATIC_METHOD_CALL                                  'Mage', 'getSingleton'
        138        SEND_VAL_EX                                              'core%2Fresource'
        139        DO_FCALL                                      0  $69     
        140        ASSIGN                                                   !5, $69
  154   141        INIT_METHOD_CALL                                         !5, 'getTableName'
        142        SEND_VAL_EX                                              'quickpaypayment_order_status'
        143        DO_FCALL                                      0  $71     
        144        ASSIGN                                                   !6, $71
  155   145        INIT_METHOD_CALL                                         !4, 'fetchRow'
        146        CONCAT                                           ~74     'select+%2A+from+', !6
        147        CONCAT                                           ~75     ~74, '+where+ordernum+%3D+'
        148        INIT_METHOD_CALL                                         'getInfo'
        149        DO_FCALL                                      0  $76     
        150        INIT_METHOD_CALL                                         $76, 'getOrder'
        151        DO_FCALL                                      0  $77     
        152        INIT_METHOD_CALL                                         $77, 'getIncrementId'
        153        DO_FCALL                                      0  $78     
        154        CONCAT                                           ~79     ~75, $78
        155        SEND_VAL_EX                                              ~79
        156        DO_FCALL                                      0  $80     
        157        ASSIGN_OBJ                                       ~73     'paymentData'
        158        OP_DATA                                                  $80
        159        ASSIGN                                                   !7, ~73
  157   160        ASSIGN                                                   !8, ''
  158   161        ASSIGN                                                   !9, ''
  159   162        INIT_METHOD_CALL                                         !0, 'getPayment'
        163        DO_FCALL                                      0  $84     
        164        INIT_METHOD_CALL                                         $84, 'getData'
        165        SEND_VAL_EX                                              'method'
        166        DO_FCALL                                      0  $85     
        167        ASSIGN                                                   !10, $85
  160   168        IS_EQUAL                                                 !10, 'purchaseorder'
        169      > JMPZ                                                     ~87, ->176
  161   170    >   INIT_METHOD_CALL                                         !0, 'getPayment'
        171        DO_FCALL                                      0  $88     
        172        INIT_METHOD_CALL                                         $88, 'getData'
        173        SEND_VAL_EX                                              'po_number'
        174        DO_FCALL                                      0  $89     
        175        ASSIGN                                                   !8, $89
  163   176    >   IS_EQUAL                                                 !10, 'quickpaypayment_payment'
        177      > JMPZ                                                     ~91, ->180
  164   178    >   FETCH_DIM_R                                      ~92     !7, 'cardtype'
        179        ASSIGN                                                   !9, ~92
  170   180    >   INIT_ARRAY                                       ~95     !10
  171   181        ADD_ARRAY_ELEMENT                                ~95     !8
  172   182        INIT_METHOD_CALL                                         !0, 'getShippingMethod'
        183        DO_FCALL                                      0  $96     
        184        ADD_ARRAY_ELEMENT                                ~95     $96
  173   185        INIT_FCALL                                               'str_replace'
        186        SEND_VAL                                                 '%0A'
        187        SEND_VAL                                                 '+'
        188        INIT_METHOD_CALL                                         !0, 'getData'
        189        SEND_VAL_EX                                              'customer_note'
        190        DO_FCALL                                      0  $97     
        191        SEND_VAR                                                 $97
        192        DO_ICALL                                         $98     
        193        ADD_ARRAY_ELEMENT                                ~95     $98
  174   194        INIT_METHOD_CALL                                         !0, 'getTotalQtyOrdered'
        195        DO_FCALL                                      0  $99     
        196        ADD_ARRAY_ELEMENT                                ~95     $99
  175   197        INIT_METHOD_CALL                                         !0, 'getShippingAmount'
        198        DO_FCALL                                      0  $100    
        199        ADD_ARRAY_ELEMENT                                ~95     $100
  176   200        INIT_METHOD_CALL                                         !0, 'getTaxAmount'
        201        DO_FCALL                                      0  $101    
        202        ADD_ARRAY_ELEMENT                                ~95     $101
  177   203        INIT_METHOD_CALL                                         !0, 'getGrandTotal'
        204        DO_FCALL                                      0  $102    
        205        INIT_METHOD_CALL                                         !0, 'getTaxAmount'
        206        DO_FCALL                                      0  $103    
        207        SUB                                              ~104    $102, $103
        208        ADD_ARRAY_ELEMENT                                ~95     ~104
  178   209        INIT_METHOD_CALL                                         !0, 'getGrandTotal'
        210        DO_FCALL                                      0  $105    
        211        ADD_ARRAY_ELEMENT                                ~95     $105
  179   212        ADD_ARRAY_ELEMENT                                ~95     !9
  169   213        ASSIGN_DIM                                               !1
  179   214        OP_DATA                                                  ~95
  184   215        ASSIGN_DIM                                               !1
  185   216        OP_DATA                                                  <array>
  196   217        INIT_METHOD_CALL                                         !0, 'getItemsCollection'
        218        DO_FCALL                                      0  $107    
        219        ASSIGN                                                   !11, $107
  197   220      > FE_RESET_R                                       $109    !11, ->287
        221    > > FE_FETCH_R                                               $109, !12, ->287
  199   222    >   INIT_METHOD_CALL                                         !12, 'getParentItemId'
        223        DO_FCALL                                      0  $110    
        224        TYPE_CHECK                                  1020          $110
        225      > JMPZ                                                     ~111, ->227
  200   226    > > JMP                                                      ->221
  203   227    >   ASSIGN                                                   !13, <array>
  205   228        INIT_METHOD_CALL                                         !12, 'getProduct'
        229        DO_FCALL                                      0  $114    
        230        INIT_METHOD_CALL                                         $114, 'getData'
        231        SEND_VAL_EX                                              'image'
        232        DO_FCALL                                      0  $115    
        233        ASSIGN_DIM                                               !13
        234        OP_DATA                                                  $115
  206   235        INIT_METHOD_CALL                                         !12, 'getSku'
        236        DO_FCALL                                      0  $117    
        237        ASSIGN_DIM                                               !13
        238        OP_DATA                               

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.6 ms | 1428 KiB | 25 Q