<function name="rpcf_get_houses_list" id="0x2810"> <input/> <output> <integer name="count" /> <for name="i" from="0" count="count"> <integer name="house_id" array_index="i" /> <integer name="ip_zone_id" array_index="i" /> <integer name="connect_date" array_index="i" /> <string name="post_code" array_index="i" /> <string name="country" array_index="i" /> <string name="region" array_index="i" /> <string name="city" array_index="i" /> <string name="street" array_index="i" /> <string name="number" array_index="i" /> <string name="building" array_index="i" /> </for> </output> </function>
function rpcf_get_houses_list() { //0x2810 $ret=array(); if (!$this->connection->urfa_call(0x2810)) { 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++) { $house['house_id']=$x->DataGetInt(); $house['ip_zone_id']=$x->DataGetInt(); $house['connect_date']=$x->DataGetInt(); $house['post_code']=$x->DataGetString(); $house['country']=$x->DataGetString(); $house['region']=$x->DataGetString(); $house['city']=$x->DataGetString(); $house['street']=$x->DataGetString(); $house['number']=$x->DataGetString(); $house['building']=$x->DataGetString(); $ret['houses'][]=$house; } return $ret; }