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
7b2c3063
Commit
7b2c3063
authored
Nov 26, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
J : changes controller and model names See merge request
!219
parents
b77407ee
4a395b56
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
FlightServices.php
application/controllers/FlightServices.php
+11
-11
HotelServices.php
application/controllers/HotelServices.php
+9
-9
Flight_model.php
application/models/Flight_model.php
+1
-1
Hotel_model.php
application/models/Hotel_model.php
+1
-1
No files found.
application/controllers/
WebserviceFlight
.php
→
application/controllers/
FlightServices
.php
View file @
7b2c3063
...
@@ -16,13 +16,13 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
...
@@ -16,13 +16,13 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
exit
(
0
);
exit
(
0
);
}
}
//test changes
//test changes
class
WebserviceFlight
extends
CI_Controller
{
class
FlightServices
extends
CI_Controller
{
var
$auth_token
;
var
$auth_token
;
public
function
__construct
()
{
public
function
__construct
()
{
parent
::
__construct
();
parent
::
__construct
();
date_default_timezone_set
(
"Asia/Riyadh"
);
date_default_timezone_set
(
"Asia/Riyadh"
);
$this
->
load
->
model
(
'
Webservice_f
light_model'
);
$this
->
load
->
model
(
'
F
light_model'
);
$this
->
load
->
model
(
'Validation_flight_model'
);
$this
->
load
->
model
(
'Validation_flight_model'
);
$method
=
$this
->
router
->
fetch_method
();
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
...
@@ -64,7 +64,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -64,7 +64,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_authenticate
(){
public
function
flight_authenticate
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
flight_authenticate
(
$data
);
$res
=
$this
->
F
light_model
->
flight_authenticate
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -75,7 +75,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -75,7 +75,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_availability_search
(){
public
function
flight_availability_search
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
flight_availability_search
(
$data
);
$res
=
$this
->
F
light_model
->
flight_availability_search
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -86,7 +86,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -86,7 +86,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_fare_rules
(){
public
function
flight_fare_rules
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
flight_fare_rules
(
$data
);
$res
=
$this
->
F
light_model
->
flight_fare_rules
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -97,7 +97,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -97,7 +97,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_revalidate
(){
public
function
flight_revalidate
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
flight_revalidate
(
$data
);
$res
=
$this
->
F
light_model
->
flight_revalidate
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -108,7 +108,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -108,7 +108,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_book
(){
public
function
flight_book
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$thia
->
Webservice_f
light_model
->
flight_book
(
$data
);
$res
=
$thia
->
F
light_model
->
flight_book
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -119,7 +119,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -119,7 +119,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_ticket_order
(){
public
function
flight_ticket_order
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
flight_ticket_order
(
$data
);
$res
=
$this
->
F
light_model
->
flight_ticket_order
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -130,7 +130,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -130,7 +130,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_trip_details
(){
public
function
flight_trip_details
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
flight_trip_details
(
$data
);
$res
=
$this
->
F
light_model
->
flight_trip_details
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -141,7 +141,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -141,7 +141,7 @@ class WebserviceFlight extends CI_Controller {
public
function
cancel_flights
(){
public
function
cancel_flights
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
cancel_flights
(
$data
);
$res
=
$this
->
F
light_model
->
cancel_flights
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -152,7 +152,7 @@ class WebserviceFlight extends CI_Controller {
...
@@ -152,7 +152,7 @@ class WebserviceFlight extends CI_Controller {
public
function
airportSearch
(){
public
function
airportSearch
(){
$data
=
$_GET
;
$data
=
$_GET
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_f
light_model
->
airportSearch
(
$data
);
$res
=
$this
->
F
light_model
->
airportSearch
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
...
application/controllers/
WebserviceHotel
.php
→
application/controllers/
HotelServices
.php
View file @
7b2c3063
...
@@ -16,13 +16,13 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
...
@@ -16,13 +16,13 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
exit
(
0
);
exit
(
0
);
}
}
//test changes
//test changes
class
WebserviceHotel
extends
CI_Controller
{
class
HotelServices
extends
CI_Controller
{
var
$auth_token
;
var
$auth_token
;
public
function
__construct
()
{
public
function
__construct
()
{
parent
::
__construct
();
parent
::
__construct
();
date_default_timezone_set
(
"Asia/Riyadh"
);
date_default_timezone_set
(
"Asia/Riyadh"
);
$this
->
load
->
model
(
'
Webservice_h
otel_model'
);
$this
->
load
->
model
(
'
H
otel_model'
);
$this
->
load
->
model
(
'Validation_hotel_model'
);
$this
->
load
->
model
(
'Validation_hotel_model'
);
$method
=
$this
->
router
->
fetch_method
();
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
...
@@ -64,7 +64,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -64,7 +64,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_hotel_city_list
(){
public
function
get_hotel_city_list
(){
$data
=
$_GET
;
$data
=
$_GET
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
get_hotel_city_list
(
$data
);
$res
=
$this
->
H
otel_model
->
get_hotel_city_list
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -75,7 +75,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -75,7 +75,7 @@ class WebserviceHotel extends CI_Controller {
public
function
hotel_search
(){
public
function
hotel_search
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
hotel_search
(
$data
);
$res
=
$this
->
H
otel_model
->
hotel_search
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -86,7 +86,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -86,7 +86,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_specific_hotel_content
(){
public
function
get_specific_hotel_content
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
get_specific_hotel_content
(
$data
);
$res
=
$this
->
H
otel_model
->
get_specific_hotel_content
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -97,7 +97,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -97,7 +97,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_room_rates
(){
public
function
get_room_rates
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
get_room_rates
(
$data
);
$res
=
$this
->
H
otel_model
->
get_room_rates
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -108,7 +108,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -108,7 +108,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_rate_rules
(){
public
function
get_rate_rules
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
get_rate_rules
(
$data
);
$res
=
$this
->
H
otel_model
->
get_rate_rules
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -119,7 +119,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -119,7 +119,7 @@ class WebserviceHotel extends CI_Controller {
public
function
hotel_book
(){
public
function
hotel_book
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
hotel_book
(
$data
);
$res
=
$this
->
H
otel_model
->
hotel_book
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
@@ -130,7 +130,7 @@ class WebserviceHotel extends CI_Controller {
...
@@ -130,7 +130,7 @@ class WebserviceHotel extends CI_Controller {
public
function
trawex_cancel_booking
(){
public
function
trawex_cancel_booking
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$res
=
$this
->
Webservice_h
otel_model
->
trawex_cancel_booking
(
$data
);
$res
=
$this
->
H
otel_model
->
trawex_cancel_booking
(
$data
);
if
(
$res
[
'status'
]
==
1
){
if
(
$res
[
'status'
]
==
1
){
$this
->
response
(
$res
[
'data'
]);
$this
->
response
(
$res
[
'data'
]);
}
else
{
}
else
{
...
...
application/models/
Webservice_f
light_model.php
→
application/models/
F
light_model.php
View file @
7b2c3063
<?php
<?php
class
Webservice_f
light_model
extends
CI_Model
{
class
F
light_model
extends
CI_Model
{
public
function
_consruct
(){
public
function
_consruct
(){
parent
::
_construct
();
parent
::
_construct
();
...
...
application/models/
Webservice_h
otel_model.php
→
application/models/
H
otel_model.php
View file @
7b2c3063
<?php
<?php
class
Webservice_h
otel_model
extends
CI_Model
{
class
H
otel_model
extends
CI_Model
{
public
function
_consruct
(){
public
function
_consruct
(){
parent
::
_construct
();
parent
::
_construct
();
...
...
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