<function name="rpcf_user5_get_services" id="-0x4023"> <input> </input> <output> <integer name="links_size" /> <for name="i" from="0" count="links_size"> <integer name="id" array_index="i" /> <integer name="service_id" array_index="i" /> <integer name="service_type" array_index="i" /> <string name="service_name" array_index="i" /> <string name="tariff_name" array_index="i" /> <string name="discount_period" array_index="i" /> <double name="cost" array_index="i" /> <double name="discounted_in_curr_period" array_index="i" /> </for> </output> </function>
function rpcf_user5_get_services() { //-0x4023 $ret=array(); if (!$this->connection->urfa_call(-0x4023)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $x = $this->connection->urfa_get_data(); $ret['count']=$x->DataGetInt(); for ($i=0;$i<$ret['count'];$i++) { // $x = $this->connection->urfa_get_data(); $service['id'] = $x->DataGetInt(); $service['service_id'] = $x->DataGetInt(); $service['service_type'] = $x->DataGetInt(); $service['service_name'] = $x->DataGetString(); $service['tariff_name'] = $x->DataGetString(); $service['discount_period'] = $x->DataGetString(); $service['cost'] = $x->DataGetDouble(); $service['discounted_in_curr_period'] = $x->DataGetDouble(); $ret['services'][]=$service; } // $this->connection->urfa_get_data(); return $ret; }