Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joyride phase2
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
Jansa Jose
joyride phase2
Commits
dfbe902c
Commit
dfbe902c
authored
Dec 07, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new function get userpush detail
parent
20781ee2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
Webservices.php
application/controllers/Webservices.php
+12
-0
Webservice_model.php
application/models/Webservice_model.php
+16
-0
No files found.
application/controllers/Webservices.php
View file @
dfbe902c
...
...
@@ -2409,6 +2409,18 @@
print
json_encode
(
$response
);
}
public
function
get_userpush_notification_details_post
(){
$postdata
=
file_get_contents
(
"php://input"
);
$request
=
json_decode
(
$postdata
,
true
);
if
(
$request
){
$response
=
$this
->
Webservice_model
->
get_userpush_notification_details
(
$request
);
}
else
{
$response
=
array
(
'status'
=>
'error'
,
'message'
=>
'Something Went Wrong'
,
'data'
=>
''
);
}
print
json_encode
(
$response
);
}
function
get_ride_info_post
(){
$postdata
=
file_get_contents
(
"php://input"
);
...
...
application/models/Webservice_model.php
View file @
dfbe902c
...
...
@@ -2172,6 +2172,22 @@ function get_push_notification_details($request){
return
$query
->
result
();
}
function
get_userpush_notification_details
(
$request
){
$this
->
db
->
where
(
'booking.status'
,
0
);
$this
->
db
->
where
(
'ride.id'
,
$request
[
'ride_id'
]);
$this
->
db
->
where
(
'ride.users_id'
,
$request
[
'user_id'
]);
$this
->
db
->
select
(
'booking.*,ride.no_of_seats AS rideseat,car_details.car_image'
);
$this
->
db
->
from
(
'booking'
);
$this
->
db
->
join
(
'ride'
,
'booking.ride_id=ride.id'
,
'left'
);
$this
->
db
->
join
(
'users'
,
'ride.users_id=users.id'
,
'left'
);
$this
->
db
->
join
(
'car_details'
,
'ride.car_id=car_details.id'
,
'left'
);
$query
=
$this
->
db
->
get
();
// echo $this->db->last_query();
return
$query
->
row
();
}
function
reject_send_details
(
$request
){
$this
->
db
->
where
(
'booking.id'
,
$request
);
$this
->
db
->
select
(
'booking.*,users.*'
);
...
...
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