User Tools

Site Tools


ors-soap-api:public:getservicetypes

getServiceTypes method

Get a list of ORS service types.

Description

public array getServiceTypes( string $lang )

Parameters

  • lang (string) : language. If not valid language is entered then default en is used.

Return Values

Returns a list of service types in ORS:

Array
(
    [0] => Array
        (
            [code] => HP
            [translation] => half board
        )

    [1] => Array
        (
            [code] => AI
            [translation] => all inclusive
        )

    [2] => Array
        (
            [code] => OV
            [translation] => accommodation only
        )

    [3] => Array
        (
            [code] => UF
            [translation] => bed & breakfast
        )

    [4] => Array
        (
            [code] => VP
            [translation] => full board
        )

    [5] => Array
        (
            [code] => LP
            [translation] => package
        )

    [6] => Array
        (
            [code] => NV
            [translation] => overnight with dinner
        )

    [7] => Array
        (
            [code] => HP+
            [translation] => half board with extras
        )

    [8] => Array
        (
            [code] => AI+
            [translation] => all inclusive with extras
        )

    [9] => Array
        (
            [code] => VP+
            [translation] => full board plus
        )

    [10] => Array
        (
            [code] => LK
            [translation] => by catalog program
        )

    [11] => Array
        (
            [code] => OL
            [translation] => bed & lunch
        )

    [12] => Array
        (
            [code] => H+
            [translation] => half board +
        )

    [13] => Array
        (
            [code] => A+
            [translation] => all inclusive with extras
        )

    [14] => Array
        (
            [code] => V+
            [translation] => full board with extras
        )

    [15] => Array
        (
            [code] => LAI
            [translation] => all inclusive light
        )

    [16] => Array
        (
            [code] => NF
            [translation] => flight only
        )

    [17] => Array
        (
            [code] => TO
            [translation] => transfer only
        )

    [18] => Array
        (
            [code] => SAI
            [translation] => all inclusive soft
        )

)

Return parameters

  • code : srvice type code
  • translation : room type translation (depending on entered $lang)

Examples

  • Example
$list = $soapClient->orsxml_api_call( 'getServiceTypes', 'en' );
ors-soap-api/public/getservicetypes.txt · Last modified: 2015/02/21 20:28 by admin