Methods summary
public
|
|
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(..))
|