UDDS CLIENT - API Documentation version 4.01 ( 2022.04.22 )

About UDDS Client

Complex types

Properties

Methods

Online booking and payments

Download

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] => Wyc. Objazdowe
                )

            [Egipt] => Array
                (
                    [0] => Dahab
                    [1] => Hurghada
                    [2] => Marsa Alam
                    [3] => Sharm El Sheikh
                    [4] => Wyc. Objazdowe
                )

            [Meksyk] => Array
                (
                    [0] => Cancun
                    [1] => Riviera Maya
                    [2] => Wyc. Objazdowe
                )

        )

    [tourOperator] => Array
        (
            [0] => BVBE
            [1] => BVBX
            [2] => BVPR
            [3] => ECTR
            [4] => EXIM
            [5] => OASI
            [6] => ORKA
            [7] => RNBW
            [8] => SFPL
            [9] => WEZY
        )

    [tourOperatorFullName] => Array
        (
            [BVBE] => Best Reisen Group 
            [BVBX] => Best Reisen Exotic
            [BVPR] => Prima Holiday
            [ECTR] => Ecco Travel
            [EXIM] => Exim Tours
            [OASI] => Oasis Tours
            [ORKA] => Orka Travel
            [RNBW] => Rainbow
            [SFPL] => Sun & Fun
            [WEZY] => Coral Travel
        )

    [departureFrom] => Array
        (
            [0] => Berlin
            [1] => Gdańsk
            [2] => Katowice
            [3] => Kraków
            [4] => Lublin
            [5] => Ostrawa
            [6] => Poznań
            [7] => Rzeszów
            [8] => Warszawa
            [9] => Wrocław
            [10] => Zielona Góra
        )

)

KSI Media ( www.ksimedia.pl ) - technical contact : maciej.szczepanski@ksimedia.pl