<function name="rpcf_edit_tariff" id="0x3013"> <input> <integer name="tp_id" /> <string name="name" /> <integer name="expire_date" /> <integer name="is_blocked" /> <integer name="balance_rollover" /> </input> <output> <integer name="tp_id" /> </output> </function>
function rpcf_edit_tariff($tariff_id,$tariff_name,$expire_date,$is_blocked,$balance_rollover) { //0x3013 $ret=0; if (!$this->connection->urfa_call(0x3013)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($tariff_id); $packet->DataSetString($tariff_name); $packet->DataSetInt($expire_date); $packet->DataSetInt($is_blocked); $packet->DataSetInt($balance_rollover); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()){ $ret = $x->DataGetInt(); // $this->connection->urfa_get_data(); } return $ret; }