Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
7300c4ce
Commit
7300c4ce
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
d9291510
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Api_model.php
application/models/Api_model.php
+5
-5
Webservice_model.php
application/models/Webservice_model.php
+2
-2
No files found.
application/models/Api_model.php
View file @
7300c4ce
...
@@ -400,8 +400,8 @@ class Api_model extends CI_Model {
...
@@ -400,8 +400,8 @@ class Api_model extends CI_Model {
foreach
((
$bookedData
=
$bookedData
->
result_array
())
as
$key
=>
$value
)
{
foreach
((
$bookedData
=
$bookedData
->
result_array
())
as
$key
=>
$value
)
{
switch
(
$value
[
'order_type'
]){
switch
(
$value
[
'order_type'
]){
case
1
:
$resp
=
$this
->
getEventData
(
$value
[
'booking_id'
],
$user_id
);
break
;
case
1
:
$resp
=
$this
->
getEventData
(
$value
[
'booking_id'
],
$user_id
);
break
;
case
2
:
$resp
=
$this
->
getHotelData
(
$value
[
'booking_id'
],
$user_id
);
break
;
//
case 2 : $resp = $this->getHotelData($value['booking_id'],$user_id);break;
case
3
:
$resp
=
$this
->
getFlightData
(
$value
[
'booking_id'
],
$user_id
);
break
;
//
case 3 : $resp = $this->getFlightData($value['booking_id'],$user_id);break;
}
}
if
(
!
empty
(
$resp
)){
if
(
!
empty
(
$resp
)){
$bookData
[]
=
$resp
;
$bookData
[]
=
$resp
;
...
@@ -449,10 +449,10 @@ class Api_model extends CI_Model {
...
@@ -449,10 +449,10 @@ class Api_model extends CI_Model {
$eventData
[
'order_type'
]
=
1
;
$eventData
[
'order_type'
]
=
1
;
$evtLang
=
langTranslator
(
$eventData
[
'event_id'
],
'EVT'
);
$evtLang
=
langTranslator
(
$eventData
[
'event_id'
],
'EVT'
);
array_merge
(
$eventData
,
$evtLang
);
$vneLang
=
langTranslator
(
$eventData
[
'venue_id'
],
'VEN'
);
$vneLang
=
langTranslator
(
$eventData
[
'venue_id'
],
'VEN'
);
return
array_merge
(
$eventData
,
$vneLang
);
$eventData
=
array_merge
(
$eventData
,
$evtLang
);
$eventData
=
array_merge
(
$eventData
,
$vneLang
);
return
$eventData
;
}
}
function
getHotelData
(
$booking_id
=
''
,
$user_id
=
''
){
function
getHotelData
(
$booking_id
=
''
,
$user_id
=
''
){
...
...
This diff is collapsed.
Click to expand it.
application/models/Webservice_model.php
View file @
7300c4ce
...
@@ -1464,8 +1464,8 @@ class Webservice_model extends CI_Model {
...
@@ -1464,8 +1464,8 @@ class Webservice_model extends CI_Model {
foreach
((
$bookedData
=
$bookedData
->
result_array
())
as
$key
=>
$value
)
{
foreach
((
$bookedData
=
$bookedData
->
result_array
())
as
$key
=>
$value
)
{
switch
(
$value
[
'order_type'
]){
switch
(
$value
[
'order_type'
]){
case
1
:
$resp
=
$this
->
getEventData
(
$value
[
'booking_id'
],
$user_id
);
break
;
case
1
:
$resp
=
$this
->
getEventData
(
$value
[
'booking_id'
],
$user_id
);
break
;
case
2
:
$resp
=
$this
->
getHotelData
(
$value
[
'booking_id'
],
$user_id
);
break
;
//
case 2 : $resp = $this->getHotelData($value['booking_id'],$user_id);break;
case
3
:
$resp
=
$this
->
getFlightData
(
$value
[
'booking_id'
],
$user_id
);
break
;
//
case 3 : $resp = $this->getFlightData($value['booking_id'],$user_id);break;
}
}
if
(
!
empty
(
$resp
)){
if
(
!
empty
(
$resp
)){
$bookData
[]
=
$resp
;
$bookData
[]
=
$resp
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment