3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mage_MultiVendor_Model_Customer_Attribute_Backend_Affiliatesince extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract { public function beforeSave($object) { //DebugBreak(); /* admin only */ if (Mage::app()->getStore()->isAdmin()) { $affiliateStatus = $object->getData('affiliate_status'); $affiliateSince = $object->getData('affiliate_since'); if (empty($affiliateSince) && !empty($affiliateStatus) && $affiliateStatus == 2) { $object->setAffiliateSince(Mage::getModel('core/date')->gmtDate()); } } return $this; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dm1Fm
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'mage_multivendor_model_customer_attribute_backend_affiliatesince', 'mage_eav_model_entity_attribute_backend_abstract'
   23     1      > RETURN                                                   1

Class Mage_MultiVendor_Model_Customer_Attribute_Backend_Affiliatesince:
Function beforesave:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 33
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 33
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 24
Branch analysis from position: 21
Branch analysis from position: 33
filename:       /in/dm1Fm
function name:  beforeSave
number of ops:  36
compiled vars:  !0 = $object, !1 = $affiliateStatus, !2 = $affiliateSince
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
   11     1        INIT_STATIC_METHOD_CALL                                  'Mage', 'app'
          2        DO_FCALL                                      0  $3      
          3        INIT_METHOD_CALL                                         $3, 'getStore'
          4        DO_FCALL                                      0  $4      
          5        INIT_METHOD_CALL                                         $4, 'isAdmin'
          6        DO_FCALL                                      0  $5      
          7      > JMPZ                                                     $5, ->33
   12     8    >   INIT_METHOD_CALL                                         !0, 'getData'
          9        SEND_VAL_EX                                              'affiliate_status'
         10        DO_FCALL                                      0  $6      
         11        ASSIGN                                                   !1, $6
   13    12        INIT_METHOD_CALL                                         !0, 'getData'
         13        SEND_VAL_EX                                              'affiliate_since'
         14        DO_FCALL                                      0  $8      
         15        ASSIGN                                                   !2, $8
   15    16        ISSET_ISEMPTY_CV                                 ~10     !2
         17      > JMPZ_EX                                          ~10     ~10, ->21
         18    >   ISSET_ISEMPTY_CV                                 ~11     !1
         19        BOOL_NOT                                         ~12     ~11
         20        BOOL                                             ~10     ~12
         21    > > JMPZ_EX                                          ~10     ~10, ->24
         22    >   IS_EQUAL                                         ~13     !1, 2
         23        BOOL                                             ~10     ~13
         24    > > JMPZ                                                     ~10, ->33
   16    25    >   INIT_METHOD_CALL                                         !0, 'setAffiliateSince'
         26        INIT_STATIC_METHOD_CALL                                  'Mage', 'getModel'
         27        SEND_VAL_EX                                              'core%2Fdate'
         28        DO_FCALL                                      0  $14     
         29        INIT_METHOD_CALL                                         $14, 'gmtDate'
         30        DO_FCALL                                      0  $15     
         31        SEND_VAR_NO_REF_EX                                       $15
         32        DO_FCALL                                      0          
   20    33    >   FETCH_THIS                                       ~17     
         34      > RETURN                                                   ~17
   21    35*     > RETURN                                                   null

End of function beforesave

End of class Mage_MultiVendor_Model_Customer_Attribute_Backend_Affiliatesince.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.72 ms | 944 KiB | 14 Q