Delete Video API : ps
This commit is contained in:
parent
2883aeda8d
commit
c213601492
@ -234,6 +234,7 @@ $route['putSalCheck'] = 'PD_Controller/putSalCheck';
|
||||
$route['sendCusLinkViaSMS'] = 'PD_Controller/sendCusLinkViaSMS';
|
||||
$route['saveCusVideo'] = 'PD_Controller/saveCusVideo';
|
||||
$route['getVideoURL'] = 'PD_Controller/getVideoURL';
|
||||
$route['deleteVideo'] = 'PD_Controller/deleteVideo';
|
||||
$route['getListOfvendors'] = 'PD_Controller/getListOfvendors';
|
||||
$route['(getListVendorPDOfficers/:num)'] = 'PD_Controller/getListVendorPDOfficers';
|
||||
$route['duplicatePD'] = 'PD_Controller/duplicatePD';
|
||||
|
||||
@ -9779,6 +9779,20 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
|
||||
|
||||
}
|
||||
|
||||
// To Inactive Video Recorded.
|
||||
public function deleteVideo_post(){
|
||||
$multipleWhere = $this->post();
|
||||
$multipleWhere['fk_pd_id'] = $multipleWhere['pd_id'];
|
||||
unset($multipleWhere['pd_id']);
|
||||
$this->load->helper('video_grabber_helper');
|
||||
$result_data = (new video_grabber_helper)->deleteVideo($multipleWhere);
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['msg'] = $result_data ;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
|
||||
}
|
||||
|
||||
function updateTwlioVideoStatus_post()
|
||||
|
||||
@ -49,6 +49,16 @@ class video_grabber_helper
|
||||
return $result_data;
|
||||
|
||||
}
|
||||
public function deleteVideo($multipleWhere)
|
||||
{
|
||||
$CI =&get_instance();
|
||||
$updateRows = array('isactive' => 0);
|
||||
// $multipleWhere = array('fk_pd_id' => $pdid, 'room_id' => $roomid);
|
||||
$CI->db->where($multipleWhere);
|
||||
$CI->db->update(VIDEO_ROOM_INFO, $updateRows);
|
||||
$affectedRows = $CI->db->affected_rows();
|
||||
return (($affectedRows > 0 ) ? "Deleted successfully" : "Fail to Delete");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user