==== XML ==== ==== PHP ==== В текущей реализации поиск производится только по card_id. Для поиска по другим критериям код требуется дорабатывать. function rpcf_search_cards($card_id) { //0x1201 $ret=array(); if (!$this->connection->urfa_call(0x1201)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt(1); //select type $packet->DataSetInt(1); //patterns count $packet->DataSetInt(1); //what_id 'id' $packet->DataSetInt(3); //criteria_id '=' $packet->DataSetString($card_id); //card_id $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $count=$x->DataGetInt(); $ret['count']=$count; for($i=0; $i<$count;$i++) { //$x = $this->connection->urfa_get_data(); $card['card_id'] = $x->DataGetInt(); $card['pool_id'] = $x->DataGetInt(); $card['secret'] = $x->DataGetString(); $card['balance'] = $x->DataGetDouble(); $card['currency']= $x->DataGetInt(); $card['expire'] = $x->DataGetInt(); $card['days'] = $x->DataGetInt(); $card['is_used'] = $x->DataGetInt(); $card['tp_id'] = $x->DataGetInt(); $ret['cards'][] = $card; } //$this->connection->urfa_get_data(); } return $ret; } RPCF_SEARCH_CARDS FUNCTION DESCRIPTION __________________________________________ "criteria_id" can get the following values: 1 : LIKE 3 : = 4 : <> 7 : > 8 : < 9 : >= 10 : <= 11 : NOT LIKE _______________________________________ "what_id" can get the following values: 1: id 2: pool_id 3: secret 4: balance 5: currency 6: expiration 7: service_id 8: is_used