<function name="rpcf_add_once_service_to_user" id="0x2555"> <input> <integer name="user_id" /> <integer name="account_id" /> <integer name="service_id" /> <integer name="tplink" /> <integer name="slink_id" /> <integer name="discount_date" /> <double name="quantity" /> <integer name="invoice_id" /> </input> <output> <string name="result" /> </output> </function>
function rpcf_add_once_service_to_user($user_id,$account_id,$service_id,$tplink,$slink_id,$discount_date,$quantity,$invoice_id) { //0x2555 $ret=array(); if (!$this->connection->urfa_call(0x2555)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($user_id); $packet->DataSetInt($account_id); $packet->DataSetInt($service_id); $packet->DataSetInt($tplink); $packet->DataSetInt($slink_id); $packet->DataSetInt($discount_date); $packet->DataSetDouble($quantity); $packet->DataSetInt($invoice_id); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $ret['result']=$x->DataGetString(); // $this->connection->urfa_get_data(); } return $ret; }