Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Download Elxis CMS:
Elxis 5.5 Hermes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Components
»
IOSR, please help with new module
« previous
next »
Print
Pages: [
1
]
Author
Topic: IOSR, please help with new module (Read 5091 times)
juanon
Full Member
Posts: 109
IOSR, please help with new module
«
on:
May 11, 2015, 13:07:38 »
Hi,
I´m developing two custom modules for IOSR latest version.
Can anyone please tell me how to get the hid (hotel id) for the current page the user is in, and the lic (location id) for the current page the user is in?
I miss some kind of documentation for developers (not API documentation), can it be found anywhere?
Thanks a lot.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: IOSR, please help with new module
«
Reply #1 on:
May 11, 2015, 14:33:39 »
IOSR Hotels sets the following PHP constants for the purpose you want (they are written in the manual).
IOSR_COUNTRY
The country 2 letter iso code ("gr", "it", "fr", etc...)
Available in country, location, hotel, search pages (if search is submitted).
IOSR_LOCATION
The location ID (lid, integer)
Available in country, location, search pages (if search is submitted).
IOSR_HOTEL
The hotel ID (hid, integer)
Available in hotel pages.
Usage example
$hid = (defined('IOSR_HOTEL')) ? (int)IOSR_HOTEL : 0;
if ($hid > 0) {
//you see a hotel
}
«
Last Edit: May 11, 2015, 14:36:07 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
juanon
Full Member
Posts: 109
Re: IOSR, please help with new module
«
Reply #2 on:
May 11, 2015, 15:09:40 »
Thanks!!
It works great.
Regards
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Components
»
IOSR, please help with new module