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
4a395b56
Commit
4a395b56
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
J : changes controller and model names
parent
3a7c1b26
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 @
4a395b56
...
...
@@ -16,13 +16,13 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
exit
(
0
);
}
//test changes
class
WebserviceFlight
extends
CI_Controller
{
class
FlightServices
extends
CI_Controller
{
var
$auth_token
;
public
function
__construct
()
{
parent
::
__construct
();
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'
);
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
...
...
@@ -64,7 +64,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_authenticate
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -75,7 +75,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_availability_search
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -86,7 +86,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_fare_rules
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -97,7 +97,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_revalidate
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -108,7 +108,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_book
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -119,7 +119,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_ticket_order
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -130,7 +130,7 @@ class WebserviceFlight extends CI_Controller {
public
function
flight_trip_details
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -141,7 +141,7 @@ class WebserviceFlight extends CI_Controller {
public
function
cancel_flights
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -152,7 +152,7 @@ class WebserviceFlight extends CI_Controller {
public
function
airportSearch
(){
$data
=
$_GET
;
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
application/controllers/
WebserviceHotel
.php
→
application/controllers/
HotelServices
.php
View file @
4a395b56
...
...
@@ -16,13 +16,13 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
exit
(
0
);
}
//test changes
class
WebserviceHotel
extends
CI_Controller
{
class
HotelServices
extends
CI_Controller
{
var
$auth_token
;
public
function
__construct
()
{
parent
::
__construct
();
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'
);
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
...
...
@@ -64,7 +64,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_hotel_city_list
(){
$data
=
$_GET
;
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -75,7 +75,7 @@ class WebserviceHotel extends CI_Controller {
public
function
hotel_search
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -86,7 +86,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_specific_hotel_content
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -97,7 +97,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_room_rates
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -108,7 +108,7 @@ class WebserviceHotel extends CI_Controller {
public
function
get_rate_rules
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -119,7 +119,7 @@ class WebserviceHotel extends CI_Controller {
public
function
hotel_book
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
@@ -130,7 +130,7 @@ class WebserviceHotel extends CI_Controller {
public
function
trawex_cancel_booking
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$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
){
$this
->
response
(
$res
[
'data'
]);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
application/models/
Webservice_f
light_model.php
→
application/models/
F
light_model.php
View file @
4a395b56
<?php
class
Webservice_f
light_model
extends
CI_Model
{
class
F
light_model
extends
CI_Model
{
public
function
_consruct
(){
parent
::
_construct
();
...
...
This diff is collapsed.
Click to expand it.
application/models/
Webservice_h
otel_model.php
→
application/models/
H
otel_model.php
View file @
4a395b56
<?php
class
Webservice_h
otel_model
extends
CI_Model
{
class
H
otel_model
extends
CI_Model
{
public
function
_consruct
(){
parent
::
_construct
();
...
...
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