3v4l.org

run code in 300+ PHP versions simultaneously
<?php class purchase extends CI_Controller{ public function index() { $this->load->model('purchase_model'); $data['party']=$this->purchase_model->get_party(); $data['refno1']=$this->purchase_model->getref(); $data['items']=$this->purchase_model->get_items(); $this->load->view('purchase',$data); } public function getitems() { $this->load->model('purchase_model'); $this->purchase_model->getitems(); } public function getuser($id) { $this->load->model('purchase_model'); $this->purchase_model->get_user($id); } public function saveitem() { $refno= $this->input->post('refno'); $party = $this->input->post('party'); $item = $this->input->post('itemname'); $quantity = $this->input->post('quantity'); $price = $this->input->post('price'); // $amount = $this->input->post('amount'); $amount= $quantity*$price; $narration = $this->input->post('narration'); $this->load->model('purchase_model'); $partyid=$this->purchase_model->getpartyid($party); $this->load->model('purchase_model'); // $am= $this->purchase_model->getamount($refno); $result1= $this->purchase_model->checkduplicate($refno,$item); if($result1==0) { $result= $this->purchase_model->saveitem($refno,$item,$partyid,$quantity,$price,$amount,$narration); if ($result){ echo json_encode(array('success'=>true, 'msg'=>'inserted successfully', 'am'=>$amount )); } else { echo json_encode(array('msg'=>'Some errors occured.')); } } else { echo json_encode(array('success'=>true, 'msg'=>'item already exist', 'am'=>$amount )); } } public function updateitem($id) { $refno= $this->input->post('refno'); $party = $this->input->post('party'); $item = $this->input->post('itemname'); $quantity = $this->input->post('quantity'); $price = $this->input->post('price'); // $amount = $this->input->post('amount'); $amount= $quantity*$price; $narration = $this->input->post('narration'); $this->load->model('purchase_model'); $partyid=$this->purchase_model->getpartyid($party); $itemid=$this->purchase_model->getitemid('Waste Oil'); //$am= $this->purchase_model->getamount($refno); $result1= $this->purchase_model->updatecheckduplicate($id,$refno,$item); //echo json_encode(array('msg'=>$result1)); if($result1==0) { $result= $this->purchase_model->updateitem($id,$refno,$item,$partyid,$quantity,$price,$amount,$narration); if ($result){ echo json_encode(array('success'=>true, 'msg'=>'inserted successfully' )); } else { echo json_encode(array('msg'=>'Some errors occured.')); } } else { echo json_encode(array('success'=>true, 'msg'=>'inserted successfully' )); } } public function deleteitem() { $id= $this->input->post('id'); $this->load->model('purchase_model'); $result=$this->purchase_model->deleteitem($id); if ($result){ echo json_encode(array('success'=>true, 'msg'=>'inserted successfully' )); } else { echo json_encode(array('msg'=>'Some errors occured.')); } } public function submitreference() { $id= $this->input->post('refno1'); $recno= $this->input->post('recptno'); $date= $this->input->post('date'); $this->load->model('purchase_model'); // $total= $this->purchase_model->checkatleastoneitem($id); $duplicate= $this->purchase_model->checkduplicateref($id); if($duplicate!=0) { $this->load->model('purchase_model'); $data['party']=$this->purchase_model->get_party(); $data['refno1']=$this->purchase_model->getref(); $data['items']=$this->purchase_model->get_items(); $data['refexist']= $duplicate; $this->load->view('purchase',$data); } else if($total==0) { $this->load->model('purchase_model'); $data['party']=$this->purchase_model->get_party(); $data['refno1']=$this->purchase_model->getref(); $data['items']=$this->purchase_model->get_items(); $data['submitted']=1; $this->load->view('purchase',$data); } else { $this->load->model('purchase_model'); $this->purchase_model->submitreference($id,$date,$recno); $this->purchase_model->purchasestockmain($id); $data['party']=$this->purchase_model->get_party(); $data['refno1']=$this->purchase_model->getref(); $data['items']=$this->purchase_model->get_items(); $data['submitted']=2; $this->load->view('purchase',$data); } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'purchase', 'ci_controller'
  201     1      > RETURN                                                   1

Class purchase:
Function index:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  index
number of ops:  25
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~1      'load'
          1        INIT_METHOD_CALL                                         ~1, 'model'
          2        SEND_VAL_EX                                              'purchase_model'
          3        DO_FCALL                                      0          
    7     4        FETCH_OBJ_R                                      ~4      'purchase_model'
          5        INIT_METHOD_CALL                                         ~4, 'get_party'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN_DIM                                               !0, 'party'
          8        OP_DATA                                                  $5
    8     9        FETCH_OBJ_R                                      ~7      'purchase_model'
         10        INIT_METHOD_CALL                                         ~7, 'getref'
         11        DO_FCALL                                      0  $8      
         12        ASSIGN_DIM                                               !0, 'refno1'
         13        OP_DATA                                                  $8
    9    14        FETCH_OBJ_R                                      ~10     'purchase_model'
         15        INIT_METHOD_CALL                                         ~10, 'get_items'
         16        DO_FCALL                                      0  $11     
         17        ASSIGN_DIM                                               !0, 'items'
         18        OP_DATA                                                  $11
   11    19        FETCH_OBJ_R                                      ~12     'load'
         20        INIT_METHOD_CALL                                         ~12, 'view'
         21        SEND_VAL_EX                                              'purchase'
         22        SEND_VAR_EX                                              !0
         23        DO_FCALL                                      0          
   13    24      > RETURN                                                   null

End of function index

Function getitems:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  getitems
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   FETCH_OBJ_R                                      ~0      'load'
          1        INIT_METHOD_CALL                                         ~0, 'model'
          2        SEND_VAL_EX                                              'purchase_model'
          3        DO_FCALL                                      0          
   18     4        FETCH_OBJ_R                                      ~2      'purchase_model'
          5        INIT_METHOD_CALL                                         ~2, 'getitems'
          6        DO_FCALL                                      0          
   19     7      > RETURN                                                   null

End of function getitems

Function getuser:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  getuser
number of ops:  10
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   22     1        FETCH_OBJ_R                                      ~1      'load'
          2        INIT_METHOD_CALL                                         ~1, 'model'
          3        SEND_VAL_EX                                              'purchase_model'
          4        DO_FCALL                                      0          
   23     5        FETCH_OBJ_R                                      ~3      'purchase_model'
          6        INIT_METHOD_CALL                                         ~3, 'get_user'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
   24     9      > RETURN                                                   null

End of function getuser

Function saveitem:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 53, Position 2 = 78
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 65, Position 2 = 73
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 77
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 85
Branch analysis from position: 85
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 73
1 jumps found. (Code = 42) Position 1 = 85
Branch analysis from position: 85
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  saveitem
number of ops:  86
compiled vars:  !0 = $refno, !1 = $party, !2 = $item, !3 = $quantity, !4 = $price, !5 = $amount, !6 = $narration, !7 = $partyid, !8 = $result1, !9 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   FETCH_OBJ_R                                      ~10     'input'
          1        INIT_METHOD_CALL                                         ~10, 'post'
          2        SEND_VAL_EX                                              'refno'
          3        DO_FCALL                                      0  $11     
          4        ASSIGN                                                   !0, $11
   31     5        FETCH_OBJ_R                                      ~13     'input'
          6        INIT_METHOD_CALL                                         ~13, 'post'
          7        SEND_VAL_EX                                              'party'
          8        DO_FCALL                                      0  $14     
          9        ASSIGN                                                   !1, $14
   32    10        FETCH_OBJ_R                                      ~16     'input'
         11        INIT_METHOD_CALL                                         ~16, 'post'
         12        SEND_VAL_EX                                              'itemname'
         13        DO_FCALL                                      0  $17     
         14        ASSIGN                                                   !2, $17
   33    15        FETCH_OBJ_R                                      ~19     'input'
         16        INIT_METHOD_CALL                                         ~19, 'post'
         17        SEND_VAL_EX                                              'quantity'
         18        DO_FCALL                                      0  $20     
         19        ASSIGN                                                   !3, $20
   34    20        FETCH_OBJ_R                                      ~22     'input'
         21        INIT_METHOD_CALL                                         ~22, 'post'
         22        SEND_VAL_EX                                              'price'
         23        DO_FCALL                                      0  $23     
         24        ASSIGN                                                   !4, $23
   36    25        MUL                                              ~25     !3, !4
         26        ASSIGN                                                   !5, ~25
   37    27        FETCH_OBJ_R                                      ~27     'input'
         28        INIT_METHOD_CALL                                         ~27, 'post'
         29        SEND_VAL_EX                                              'narration'
         30        DO_FCALL                                      0  $28     
         31        ASSIGN                                                   !6, $28
   38    32        FETCH_OBJ_R                                      ~30     'load'
         33        INIT_METHOD_CALL                                         ~30, 'model'
         34        SEND_VAL_EX                                              'purchase_model'
         35        DO_FCALL                                      0          
   39    36        FETCH_OBJ_R                                      ~32     'purchase_model'
         37        INIT_METHOD_CALL                                         ~32, 'getpartyid'
         38        SEND_VAR_EX                                              !1
         39        DO_FCALL                                      0  $33     
         40        ASSIGN                                                   !7, $33
   43    41        FETCH_OBJ_R                                      ~35     'load'
         42        INIT_METHOD_CALL                                         ~35, 'model'
         43        SEND_VAL_EX                                              'purchase_model'
         44        DO_FCALL                                      0          
   47    45        FETCH_OBJ_R                                      ~37     'purchase_model'
         46        INIT_METHOD_CALL                                         ~37, 'checkduplicate'
         47        SEND_VAR_EX                                              !0
         48        SEND_VAR_EX                                              !2
         49        DO_FCALL                                      0  $38     
         50        ASSIGN                                                   !8, $38
   49    51        IS_EQUAL                                                 !8, 0
         52      > JMPZ                                                     ~40, ->78
   51    53    >   FETCH_OBJ_R                                      ~41     'purchase_model'
         54        INIT_METHOD_CALL                                         ~41, 'saveitem'
         55        SEND_VAR_EX                                              !0
         56        SEND_VAR_EX                                              !2
         57        SEND_VAR_EX                                              !7
         58        SEND_VAR_EX                                              !3
         59        SEND_VAR_EX                                              !4
         60        SEND_VAR_EX                                              !5
         61        SEND_VAR_EX                                              !6
         62        DO_FCALL                                      0  $42     
         63        ASSIGN                                                   !9, $42
   53    64      > JMPZ                                                     !9, ->73
   54    65    >   INIT_FCALL                                               'json_encode'
         66        INIT_ARRAY                                       ~44     <true>, 'success'
   55    67        ADD_ARRAY_ELEMENT                                ~44     'inserted+successfully', 'msg'
   56    68        ADD_ARRAY_ELEMENT                                ~44     !5, 'am'
         69        SEND_VAL                                                 ~44
         70        DO_ICALL                                         $45     
         71        ECHO                                                     $45
         72      > JMP                                                      ->77
   59    73    >   INIT_FCALL                                               'json_encode'
         74        SEND_VAL                                                 <array>
         75        DO_ICALL                                         $46     
         76        ECHO                                                     $46
         77    > > JMP                                                      ->85
   67    78    >   INIT_FCALL                                               'json_encode'
         79        INIT_ARRAY                                       ~47     <true>, 'success'
   68    80        ADD_ARRAY_ELEMENT                                ~47     'item+already+exist', 'msg'
   69    81        ADD_ARRAY_ELEMENT                                ~47     !5, 'am'
         82        SEND_VAL                                                 ~47
         83        DO_ICALL                                         $48     
         84        ECHO                                                     $48
   73    85    > > RETURN                                                   null

End of function saveitem

Function updateitem:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 56, Position 2 = 79
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 74
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 83
Branch analysis from position: 83
Branch analysis from position: 79
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  updateitem
number of ops:  84
compiled vars:  !0 = $id, !1 = $refno, !2 = $party, !3 = $item, !4 = $quantity, !5 = $price, !6 = $amount, !7 = $narration, !8 = $partyid, !9 = $itemid, !10 = $result1, !11 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   74     0  E >   RECV                                             !0      
   76     1        FETCH_OBJ_R                                      ~12     'input'
          2        INIT_METHOD_CALL                                         ~12, 'post'
          3        SEND_VAL_EX                                              'refno'
          4        DO_FCALL                                      0  $13     
          5        ASSIGN                                                   !1, $13
   77     6        FETCH_OBJ_R                                      ~15     'input'
          7        INIT_METHOD_CALL                                         ~15, 'post'
          8        SEND_VAL_EX                                              'party'
          9        DO_FCALL                                      0  $16     
         10        ASSIGN                                                   !2, $16
   78    11        FETCH_OBJ_R                                      ~18     'input'
         12        INIT_METHOD_CALL                                         ~18, 'post'
         13        SEND_VAL_EX                                              'itemname'
         14        DO_FCALL                                      0  $19     
         15        ASSIGN                                                   !3, $19
   79    16        FETCH_OBJ_R                                      ~21     'input'
         17        INIT_METHOD_CALL                                         ~21, 'post'
         18        SEND_VAL_EX                                              'quantity'
         19        DO_FCALL                                      0  $22     
         20        ASSIGN                                                   !4, $22
   80    21        FETCH_OBJ_R                                      ~24     'input'
         22        INIT_METHOD_CALL                                         ~24, 'post'
         23        SEND_VAL_EX                                              'price'
         24        DO_FCALL                                      0  $25     
         25        ASSIGN                                                   !5, $25
   82    26        MUL                                              ~27     !4, !5
         27        ASSIGN                                                   !6, ~27
   83    28        FETCH_OBJ_R                                      ~29     'input'
         29        INIT_METHOD_CALL                                         ~29, 'post'
         30        SEND_VAL_EX                                              'narration'
         31        DO_FCALL                                      0  $30     
         32        ASSIGN                                                   !7, $30
   84    33        FETCH_OBJ_R                                      ~32     'load'
         34        INIT_METHOD_CALL                                         ~32, 'model'
         35        SEND_VAL_EX                                              'purchase_model'
         36        DO_FCALL                                      0          
   85    37        FETCH_OBJ_R                                      ~34     'purchase_model'
         38        INIT_METHOD_CALL                                         ~34, 'getpartyid'
         39        SEND_VAR_EX                                              !2
         40        DO_FCALL                                      0  $35     
         41        ASSIGN                                                   !8, $35
   86    42        FETCH_OBJ_R                                      ~37     'purchase_model'
         43        INIT_METHOD_CALL                                         ~37, 'getitemid'
         44        SEND_VAL_EX                                              'Waste+Oil'
         45        DO_FCALL                                      0  $38     
         46        ASSIGN                                                   !9, $38
   91    47        FETCH_OBJ_R                                      ~40     'purchase_model'
         48        INIT_METHOD_CALL                                         ~40, 'updatecheckduplicate'
         49        SEND_VAR_EX                                              !0
         50        SEND_VAR_EX                                              !1
         51        SEND_VAR_EX                                              !3
         52        DO_FCALL                                      0  $41     
         53        ASSIGN                                                   !10, $41
   97    54        IS_EQUAL                                                 !10, 0
         55      > JMPZ                                                     ~43, ->79
   99    56    >   FETCH_OBJ_R                                      ~44     'purchase_model'
         57        INIT_METHOD_CALL                                         ~44, 'updateitem'
         58        SEND_VAR_EX                                              !0
         59        SEND_VAR_EX                                              !1
         60        SEND_VAR_EX                                              !3
         61        SEND_VAR_EX                                              !8
         62        SEND_VAR_EX                                              !4
         63        SEND_VAR_EX                                              !5
         64        SEND_VAR_EX                                              !6
         65        SEND_VAR_EX                                              !7
         66        DO_FCALL                                      0  $45     
         67        ASSIGN                                                   !11, $45
  101    68      > JMPZ                                                     !11, ->74
  102    69    >   INIT_FCALL                                               'json_encode'
         70        SEND_VAL                                                 <array>
         71        DO_ICALL                                         $47     
         72        ECHO                                                     $47
         73      > JMP                                                      ->78
  107    74    >   INIT_FCALL                                               'json_encode'
         75        SEND_VAL                                                 <array>
         76        DO_ICALL                                         $48     
         77        ECHO                                                     $48
         78    > > JMP                                                      ->83
  117    79    >   INIT_FCALL                                               'json_encode'
         80        SEND_VAL                                                 <array>
         81        DO_ICALL                                         $49     
         82        ECHO                                                     $49
  124    83    > > RETURN                                                   null

End of function updateitem

Function deleteitem:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  deleteitem
number of ops:  25
compiled vars:  !0 = $id, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  129     0  E >   FETCH_OBJ_R                                      ~2      'input'
          1        INIT_METHOD_CALL                                         ~2, 'post'
          2        SEND_VAL_EX                                              'id'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
  131     5        FETCH_OBJ_R                                      ~5      'load'
          6        INIT_METHOD_CALL                                         ~5, 'model'
          7        SEND_VAL_EX                                              'purchase_model'
          8        DO_FCALL                                      0          
  132     9        FETCH_OBJ_R                                      ~7      'purchase_model'
         10        INIT_METHOD_CALL                                         ~7, 'deleteitem'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $8      
         13        ASSIGN                                                   !1, $8
  135    14      > JMPZ                                                     !1, ->20
  136    15    >   INIT_FCALL                                               'json_encode'
         16        SEND_VAL                                                 <array>
         17        DO_ICALL                                         $10     
         18        ECHO                                                     $10
         19      > JMP                                                      ->24
  140    20    >   INIT_FCALL                                               'json_encode'
         21        SEND_VAL                                                 <array>
         22        DO_ICALL                                         $11     
         23        ECHO                                                     $11
  143    24    > > RETURN                                                   null

End of function deleteitem

Function submitreference:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 58
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 123
Branch analysis from position: 123
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 87
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 123
Branch analysis from position: 123
Branch analysis from position: 87
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mIerd
function name:  submitreference
number of ops:  124
compiled vars:  !0 = $id, !1 = $recno, !2 = $date, !3 = $total, !4 = $duplicate, !5 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  147     0  E >   FETCH_OBJ_R                                      ~6      'input'
          1        INIT_METHOD_CALL                                         ~6, 'post'
          2        SEND_VAL_EX                                              'refno1'
          3        DO_FCALL                                      0  $7      
          4        ASSIGN                                                   !0, $7
  148     5        FETCH_OBJ_R                                      ~9      'input'
          6        INIT_METHOD_CALL                                         ~9, 'post'
          7        SEND_VAL_EX                                              'recptno'
          8        DO_FCALL                                      0  $10     
          9        ASSIGN                                                   !1, $10
  150    10        FETCH_OBJ_R                                      ~12     'input'
         11        INIT_METHOD_CALL                                         ~12, 'post'
         12        SEND_VAL_EX                                              'date'
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !2, $13
  152    15        FETCH_OBJ_R                                      ~15     'load'
         16        INIT_METHOD_CALL                                         ~15, 'model'
         17        SEND_VAL_EX                                              'purchase_model'
         18        DO_FCALL                                      0          
  154    19        FETCH_OBJ_R                                      ~17     'purchase_model'
         20        INIT_METHOD_CALL                                         ~17, 'checkatleastoneitem'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $18     
         23        ASSIGN                                                   !3, $18
  155    24        FETCH_OBJ_R                                      ~20     'purchase_model'
         25        INIT_METHOD_CALL                                         ~20, 'checkduplicateref'
         26        SEND_VAR_EX                                              !0
         27        DO_FCALL                                      0  $21     
         28        ASSIGN                                                   !4, $21
  156    29        IS_NOT_EQUAL                                             !4, 0
         30      > JMPZ                                                     ~23, ->58
  159    31    >   FETCH_OBJ_R                                      ~24     'load'
         32        INIT_METHOD_CALL                                         ~24, 'model'
         33        SEND_VAL_EX                                              'purchase_model'
         34        DO_FCALL                                      0          
  161    35        FETCH_OBJ_R                                      ~27     'purchase_model'
         36        INIT_METHOD_CALL                                         ~27, 'get_party'
         37        DO_FCALL                                      0  $28     
         38        ASSIGN_DIM                                               !5, 'party'
         39        OP_DATA                                                  $28
  162    40        FETCH_OBJ_R                                      ~30     'purchase_model'
         41        INIT_METHOD_CALL                                         ~30, 'getref'
         42        DO_FCALL                                      0  $31     
         43        ASSIGN_DIM                                               !5, 'refno1'
         44        OP_DATA                                                  $31
  163    45        FETCH_OBJ_R                                      ~33     'purchase_model'
         46        INIT_METHOD_CALL                                         ~33, 'get_items'
         47        DO_FCALL                                      0  $34     
         48        ASSIGN_DIM                                               !5, 'items'
         49        OP_DATA                                                  $34
  164    50        ASSIGN_DIM                                               !5, 'refexist'
         51        OP_DATA                                                  !4
  165    52        FETCH_OBJ_R                                      ~36     'load'
         53        INIT_METHOD_CALL                                         ~36, 'view'
         54        SEND_VAL_EX                                              'purchase'
         55        SEND_VAR_EX                                              !5
         56        DO_FCALL                                      0          
         57      > JMP                                                      ->123
  168    58    >   IS_EQUAL                                                 !3, 0
         59      > JMPZ                                                     ~38, ->87
  171    60    >   FETCH_OBJ_R                                      ~39     'load'
         61        INIT_METHOD_CALL                                         ~39, 'model'
         62        SEND_VAL_EX                                              'purchase_model'
         63        DO_FCALL                                      0          
  173    64        FETCH_OBJ_R                                      ~42     'purchase_model'
         65        INIT_METHOD_CALL                                         ~42, 'get_party'
         66        DO_FCALL                                      0  $43     
         67        ASSIGN_DIM                                               !5, 'party'
         68        OP_DATA                                                  $43
  174    69        FETCH_OBJ_R                                      ~45     'purchase_model'
         70        INIT_METHOD_CALL                                         ~45, 'getref'
         71        DO_FCALL                                      0  $46     
         72        ASSIGN_DIM                                               !5, 'refno1'
         73        OP_DATA                                                  $46
  175    74        FETCH_OBJ_R                                      ~48     'purchase_model'
         75        INIT_METHOD_CALL                                         ~48, 'get_items'
         76        DO_FCALL                                      0  $49     
         77        ASSIGN_DIM                                               !5, 'items'
         78        OP_DATA                                                  $49
  176    79        ASSIGN_DIM                                               !5, 'submitted'
         80        OP_DATA                                                  1
  177    81        FETCH_OBJ_R                                      ~51     'load'
         82        INIT_METHOD_CALL                                         ~51, 'view'
         83        SEND_VAL_EX                                              'purchase'
         84        SEND_VAR_EX                                              !5
         85    

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
258.68 ms | 1428 KiB | 16 Q