Overview

Classes

  • orsxml_api
  • orsxml_charter_api
  • orsxml_core
  • orsxml_hotel_api
  • orsxml_oneway_api
  • orsxml_pauschal_api
  • orsxml_soap
  • orsxml_trips_api

Interfaces

  • orsxml_api_interface
  • Overview
  • Class
  • Tree

Class orsxml_api

Common methods for all content types.

orsxml_core
Extended by orsxml_api

Direct known subclasses

orsxml_charter_api, orsxml_hotel_api, orsxml_oneway_api, orsxml_pauschal_api, orsxml_trips_api
Author: Gregor Flajs , gregor.flajs@ors.si
Located at orsxml.api.class.php
Methods summary
public
# __construct( )

Overrides

orsxml_core::__construct()
public IBE
# getStageFromURL( mixed $url )

Returns IBE stage from URL params.

Returns IBE stage from URL params.

Parameters

$url
mixed
$url , can be array of params or URL string

Returns

IBE
stage (STAGE_SEARCH|STAGE_REGIONS|STAGE_OFFERS|STAGE_TRIPS|STAGE_BOOKING) or null is returned if invalid $url
public boolean
# isStageSearch( mixed $url )

Returns if depending on URL a stage is STAGE_SEARCH.

Returns if depending on URL a stage is STAGE_SEARCH.

Parameters

$url
mixed
$url , can be URL string or $_GET array

Returns

boolean
, TRUE if stage is STAGE_REGIONS or false if not
public boolean
# isStageRegions( mixed $url )

Returns if depending on URL a stage is STAGE_REGIONS.

Returns if depending on URL a stage is STAGE_REGIONS.

Parameters

$url
mixed
$url , can be URL string or $_GET array

Returns

boolean
, TRUE if stage is STAGE_REGIONS or false if not
public boolean
# isStageOffers( mixed $url )

Returns if depending on URL a stage is STAGE_OFFERS.

Returns if depending on URL a stage is STAGE_OFFERS.

Parameters

$url
mixed
$url , can be URL string or $_GET array

Returns

boolean
, TRUE if stage is STAGE_OFFERS or false if not
public boolean
# isStageTrips( mixed $url )

Returns if depending on URL a stage is STAGE_TRIPS.

Returns if depending on URL a stage is STAGE_TRIPS.

Parameters

$url
mixed
$url , can be URL string or $_GET array

Returns

boolean
, TRUE if stage is STAGE_TRIPS or false if not
public boolean
# isStageBooking( mixed $url )

Returns if depending on URL a stage is STAGE_BOOKING.

Returns if depending on URL a stage is STAGE_BOOKING.

Parameters

$url
mixed
$url , can be URL string or $_GET array

Returns

boolean
, TRUE if stage is STAGE_BOOKING or false if not
public string
# stageRegionsURL( array $searchData, string $serverRequestUri, string $rootDir = '/' )

Get URL for stage REGIONS. Only works if current URL is on stage OFFERS and above.

Get URL for stage REGIONS. Only works if current URL is on stage OFFERS and above.

Parameters

$searchData
array
$searchData , $_GET array
$serverRequestUri
string
$serverRequestUri , this is $_SERVER['REQUEST_URI'] info (current url)
$rootDir
string
$rootDir , root directory where IBE is located (Ie.: '/' if IBE is on page root or '/ibe' if IBE is in folder 'ibe')

Returns

string
, stage URL
public string
# stageOffersURL( array $searchData, string $serverRequestUri, string $rootDir = '/' )

Get URL for stage OFFERS. Only works if current URL is on stage TRIPS and above.

Get URL for stage OFFERS. Only works if current URL is on stage TRIPS and above.

Parameters

$searchData
array
$searchData , $_GET array
$serverRequestUri
string
$serverRequestUri , this is $_SERVER['REQUEST_URI'] info (current url)
$rootDir
string
$rootDir , root directory where IBE is located (Ie.: '/' if IBE is on page root or '/ibe' if IBE is in folder 'ibe')

Returns

string
, stage URL
public string
# stageTripsURL( array $searchData, string $serverRequestUri, string $rootDir = '/' )

Get URL for stage TRIPS. Only works if current URL is on stage BOOKING and above.

Get URL for stage TRIPS. Only works if current URL is on stage BOOKING and above.

Parameters

$searchData
array
$searchData , $_GET array
$serverRequestUri
string
$serverRequestUri , this is $_SERVER['REQUEST_URI'] info (current url)
$rootDir
string
$rootDir , root directory where IBE is located (Ie.: '/' if IBE is on page root or '/ibe' if IBE is in folder 'ibe')

Returns

string
, stage URL
public integer
# getMidStatus( integer $mid )

Returns status depending on message id from tour operator.

Returns status depending on message id from tour operator.

Parameters

$mid
integer
$mid , message id from tour operator

Returns

integer
status , available statuses :: ( free = 1, not_free = 0, on_request = 2, offline = 3, sold = 4, check_tour_operator_message = 5 )
public array
# info( array $searchData, mixed $headerData )

Returns informations about hotel, region, weather, ratings, climate table, geo location

Returns informations about hotel, region, weather, ratings, climate table, geo location

Parameters

$searchData
array
$searchData , can be searched by (gid, htc, toc, rgc, zhc)
$headerData
mixed
$headerData

Returns

array
array('hotel_info' => array(),, 'weather_info' => array(..), 'region_info' => array(..), 'votes_info' => array(..), 'climate_info' => array(..), 'geo_info' => array(..))
Methods inherited from orsxml_core
check(), cleanUrl(), convertXmlToArray(), createORSXMLReq(), createORSXMLReqFilter(), createORSXMLReqFilterOLD(), createORSXMLReqOffsetPonudbe(), createORSXMLReqOffsetPonudbeOLD(), createORSXMLReqOffsetTermini(), createORSXMLReqOffsetTerminiOLD(), createORSXMLReqSort(), createORSXMLReqSortOLD(), createORSXMLReqTopOffer(), createORSXMLReqTopRegion(), createORSXMLReqValues(), createORSXmlReqRoot(), curlPost(), flightInfo(), getOfferURL(), getQueryUrl(), getRegionURL(), getSelectedUrl(), getTripURL(), makeXmlRequest(), midCheckMsgArray(), midFreeArray(), midNotFreeArray(), midOfflineArray(), midOnRequestArray(), midSoldArray(), offerTripInfo(), offers(), offersFilter(), offersPage(), offersSort(), paramsStringToArray(), parseXML(), postToHost(), regions(), register(), trips(), tripsFilter(), tripsPage(), tripsSort()
Properties inherited from orsxml_core
$typ, $xmlReq, $xmlRes
API documentation generated by ApiGen 2.8.0