<function name="rpcf_get_currency_list" id="0x2910"> <input> </input> <output> <integer name="currency_size" /> <for name="i" from="0" count="currency_size"> <integer name="id" /> <string name="currency_brief_name" array_index="i" /> <string name="currency_full_name" array_index="i" /> <double name="percent" array_index="i" /> <double name="rates" array_index="i" /> </for> </output> </function>
function rpcf_get_currency_list() { //0x2910 $ret=array(); if (!$this->connection->urfa_call(0x2910)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $x = $this->connection->urfa_get_data(); $count = $x->DataGetInt(); $ret['count']= $count; for ($i=0;$i<$count;$i++) { // $x = $this->connection->urfa_get_data(); $currency['id'] = $x->DataGetInt(); $currency['currency_brief_name'] = $x->DataGetString(); $currency['currency_full_name'] = $x->DataGetString(); $currency['percent'] = $x->DataGetDouble(); $currency['rates'] = $x->DataGetDouble(); $ret['currency'][]=$currency; } // $this->connection->urfa_get_data(); return $ret; }