Commit dfbe902c by Jansa Jose

new function get userpush detail

parent 20781ee2
...@@ -2408,6 +2408,18 @@ ...@@ -2408,6 +2408,18 @@
} }
print json_encode($response); 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(){ function get_ride_info_post(){
......
...@@ -2172,6 +2172,22 @@ function get_push_notification_details($request){ ...@@ -2172,6 +2172,22 @@ function get_push_notification_details($request){
return $query->result(); 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){ function reject_send_details($request){
$this->db->where('booking.id',$request); $this->db->where('booking.id',$request);
$this->db->select('booking.*,users.*'); $this->db->select('booking.*,users.*');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment