<function name="rpcf_user5_get_accounts" id="-0x4055"> <input> </input> <output> <integer name="accounts_size" /> <for name="i" from="0" count="accounts_size"> <integer name="account_id" array_index="i" /> <double name="balance" array_index="i" /> <double name="credit" array_index="i" /> </for> </output> </function>
function rpcf_user5_get_accounts() { //-0x4055 $ret=array(); if (!$this->connection->urfa_call(-0x4055)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $x = $this->connection->urfa_get_data(); $ret['accounts_size']=$x->DataGetInt(); for ($i=0;$i<$ret['accounts_size'];$i++) { // $x = $this->connection->urfa_get_data(); $account['account_id'] = $x->DataGetInt(); $account['balance'] = $x->DataGetDouble(); $account['credit'] = $x->DataGetDouble(); $ret['accounts'][]=$account; } // $this->connection->urfa_get_data(); return $ret; }