<function name="rpcf_user5_payments_report" id="-0x4012"> <input> <integer name="time_start" /> <integer name="time_end" /> </input> <output> <integer name="account_id" /> <integer name="atr_size" /> <for name="i" from="0" count="atr_size"> <integer name="actual_date" array_index="i" /> <integer name="payment_enter_date" array_index="i" /> <double name="payment" array_index="i" /> <double name="payment_incurrency" array_index="i" /> <integer name="currency_id" array_index="i" /> <integer name="payment_method_id" array_index="i" /> <string name="payment_method" array_index="i" /> <string name="comment" array_index="i" /> </for> </output> </function>
function rpcf_user5_payments_report($start_date,$end_date) { //-0x4012 $ret=array(); if (!$this->connection->urfa_call(-0x4012)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($start_date); $packet->DataSetInt($end_date); $this->connection->urfa_send_param($packet); $x = $this->connection->urfa_get_data(); $ret['account_id']=$x->DataGetInt(); $ret['atr_size']=$x->DataGetInt(); for ($i=0;$i<$ret['atr_size'];$i++) { $payment['actual_date'] = $x->DataGetInt(); $payment['payment_enter_date'] = $x->DataGetInt(); $payment['payment'] = $x->DataGetDouble(); $payment['payment_incurrency'] = $x->DataGetDouble(); $payment['currency_id'] = $x->DataGetInt(); $payment['payment_method_id'] = $x->DataGetInt(); $payment['payment_method'] = $x->DataGetString(); $payment['comment'] = $x->DataGetString(); $ret['payment'][]=$payment; } // $this->connection->urfa_get_data(); return $ret; }