udds->getPossibleParams ( function )
Description :
- Call : udds->getPossibleParams ( $expectedParamsLists )
- Class element : method / function
- Result : array
- This function uses the following properties : udds->searchParams
Using this function you can obtain lists of possible values to be used for creation of parameter selection lists in the search window (a country list or boarding types).
Parameters
$expectedParamsLists : array (). In this array you can give searchParams names(as keys) for which you want to obtain possible values. Permissible values for array keys (searchParams names)are in the list below.
- city
- feeding
- category
- tourOperator
- offerName
- departureFrom
- length
- roomType
- departureDate
- catalog
- transport
- country
- region
- countryRegion
- attributes
- offerType
- xRoomType
- xCampType
- sort
- candy
Example
<?php
//
// example file
//
require_once ( 'classUdds.php' ) ;
$udds = new classUdds ;
$udds->myLogin = [ Your UDDS Login ] ;
$udds->myConfigId = [ Your UDDS ConfigId ] ;
$udds->srvUrl = [ Your UDDS Server ] ;
$udds->searchParams = array() ;
$udds->searchParams [ 'country' ] = array ( 'Australia', 'Meksyk', 'Egipt' ) ;
$udds->searchParams [ 'adults' ] = 2 ;
$expectedParamsLists = array () ;
$expectedParamsLists [ 'countryRegion' ] = null ;
$expectedParamsLists [ 'tourOperator' ] = null ;
$expectedParamsLists [ 'departureFrom' ] = null ;
$possibles = $udds->getPossibleParams ( $expectedParamsLists ) ;
print_r ( $possibles ) ;
unset ( $udds ) ;
?>
Live mode example:
Array
(
[countryRegion] => Array
(
[Australia] => Array
(
[0] => Nowa Południowa Walia
[1] => Wyc. Objazdowe
)
[Egipt] => Array
(
[0] => Aleksandria
[1] => Dahab
[2] => Dolny Egipt
[3] => Hurghada
[4] => Kair
[5] => Marsa Alam
[6] => Sharm El Sheikh
[7] => Taba
[8] => Wyc. Objazdowe
)
[Meksyk] => Array
(
[0] => Baja California
[1] => Cancun
[2] => Riviera Maya
[3] => Wyc. Objazdowe
)
)
[tourOperator] => Array
(
[0] => EXIM
[1] => OREX
[2] => PLES
[3] => RNBW
[4] => SFPL
[5] => VITX
[6] => WEZX
[7] => WEZY
)
[tourOperatorFullName] => Array
(
[EXIM] => Exim Tours
[OREX] => Anex Poland
[PLES] => Nomade
[RNBW] => Rainbow
[SFPL] => Sun & Fun
[VITX] => Itaka
[WEZX] => Coral Travel-Egzotyka
[WEZY] => Coral Travel
)
[departureFrom] => Array
(
[0] => Berlin
[1] => Bydgoszcz
[2] => Gdańsk
[3] => Katowice
[4] => Kraków
[5] => Lublin
[6] => Olsztyn - Mazury
[7] => Poznań
[8] => Praga
[9] => Rzeszów
[10] => Warszawa
[11] => Wrocław
[12] => Zielona Góra
[13] => Łódź
)
)