<function name="rpcf_user5_get_tariff_name" id="-0x4039"> <input> <integer name="tariff_id" /> </input> <output> <string name="tariff_name" /> </output> </function>
function rpcf_user5_get_tariff_name($tariff_id) { //-0x4039 $ret=array(); if (!$this->connection->urfa_call(-0x4039)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($tariff_id); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $ret['tariff_name'] = $x->DataGetString(); } return $ret; }