load->model('PD_Model'); // $CI->load->helper('photo_pdf_converter'); // $CI->load->helper('photo_zip_creator'); // $CI->load->helper('video_grabber_helper'); $CI->load->helper('url_shortener'); $uri = url_shortener::url_shorten($pdid,$random_string); // if(!count($pd_master_details)) // { // $pd_master_details = $CI->PD_Model->getPDMasterDetails($pdid,$random_string); // } // $img_pdf_aws_uri = (new photo_pdf_converter)->covertImgs2PDF($pd_master_details[0]['pd_id'],$pd_master_details[0]['random_string'],$pd_master_details); // $img_zip_aws_uri = (new photo_zip_creator)->covertImgs2ZIP($pd_master_details[0]['pd_id'],$pd_master_details[0]['random_string'],$pd_master_details); // $video_uri = (new video_grabber_helper)->grabAllVideo($pd_master_details[0]['pd_id'],$pd_master_details[0]['random_string'],$pd_master_details); // print_r($video_uri) ;die(); $attachment = '

Data Links

Click here for Image PDF Link

Click here for Image ZIP Link

'; if($pd_master_details[0]['fk_pd_type'] == 2 && count($uri['vdo']))// if smart pd { $attachment .='

videos

'; foreach ($uri['vdo'] as $key => $value) { $attachment .= '

'.$value['video_name'].'

'; } } $attachment.= '


(Note all links will expire in 15 days from the date of report generation.)

'; return $attachment; } public function getSMCReportAttchments($pdid,$random_string,$pd_master_details = array()) { $CI =&get_instance(); $CI->load->helper('url_shortener'); $uri = url_shortener::SMC_report_url_shorten($pdid,$random_string); $attachment = '

Data Links

Click here for Image PDF Link

Click here for Image ZIP Link

'; $attachment.= '


(Note all links will expire in 15 days from the date of report generation.)

'; return $attachment; } } ?>