本文整理汇总了PHP中sapp_Global::_getInterviewStartDateTime方法的典型用法代码示例。如果您正苦于以下问题:PHP sapp_Global::_getInterviewStartDateTime方法的具体用法?PHP sapp_Global::_getInterviewStartDateTime怎么用?PHP sapp_Global::_getInterviewStartDateTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sapp_Global
的用法示例。
在下文中一共展示了sapp_Global::_getInterviewStartDateTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save
//.........这里部分代码省略.........
/* $emailtemp = array();
$nametemp = array();
foreach ($interviewpanelnamesemailaddress as $row) {
array_push($emailtemp, $row['emailaddress']);
array_push($nametemp, $row['userfullname']);
}
$email = implode(";", $emailtemp);
$ename = implode(";", $nametemp); */
$cal_unique_id = $this->getCalendarUniqueID();
foreach ($interviewpanelnamesemailaddresss as $interviewpanelnamesemailaddress) {
$description = "Meeting From : " . $from_name . "\r\n" . "Candidate Name : " . $cand_data['candidate_name'] . "\r\n" . "Interview Type : " . $interview_mode . "\r\n" . "Interview Location : " . $int_location . "\r\n" . "Interview Date : " . $interview_date . "\r\n" . "Interview Time : " . sapp_Global::change_time($interview_time, 'view') . "\r\n" . " " . " " . "\r\n";
/* $base_url = 'http://' . $this->getRequest()->getHttpHost() . $this->getRequest()->getBaseUrl();
$options['subject'] = APPLICATION_NAME . ': Interview schedule';
$options['header'] = 'Interview schedule';
$options['toEmail'] = $interviewpanelnamesemailaddress['emailaddress'];
$options['toName'] = $interviewpanelnamesemailaddress['userfullname'];
$options['message'] = $description;
$options['location'] = $int_location;
$options['interviewdate'] = $interview_date;
$options['starttime'] = sapp_Global::add_time($interview_time, 'view', 0);
$options['endtime'] = sapp_Global::add_time($interview_time, 'view', 3600);
//Interview Calendar Invite will be send from login user account
$options['fromEmail'] = trim($loginuser_person_data['emailaddress']);
$options['fromName'] = $loginuser_person_data['userfullname'];
$options['calUniqueID'] = $cal_unique_id;
$options['method'] = 'REQUEST';
//sapp_Global::_sendCalendarEmail($options); */
$from_name = trim($loginuser_person_data['userfullname']);
$from_address = trim($loginuser_person_data['emailaddress']);
$to_name = trim($interviewpanelnamesemailaddress['userfullname']);
$to_address = trim($interviewpanelnamesemailaddress['emailaddress']);
$startTime = sapp_Global::_getInterviewStartDateTime(sapp_Global::change_date($interview_date), sapp_Global::change_time(trim($interview_time)), 3600);
$endTime = sapp_Global::_getInterviewStartDateTime(sapp_Global::change_date($interview_date), sapp_Global::change_time(trim($interview_time)));
$subject = APPLICATION_NAME . ': Interview schedule';
$location = $int_location;
$calRequest = 'REQUEST';
sapp_Global::sendIcalEvent($from_name, $from_address, $to_name, $to_address, $startTime, $endTime, $subject, $description, $location, $calRequest, $cal_unique_id);
}
// update Calendar Invite ID to DB
$where = "id = " . $ir_result;
$irdata = array('calendarinviteid' => $cal_unique_id);
$ir_result1 = $interview_round_model->SaveorUpdateInterviewroundData($irdata, $where);
$candData = array('cand_status' => 'Scheduled', 'modifiedby' => trim($loginUserId), 'modifieddate' => gmdate("Y-m-d H:i:s"));
$where = "id = " . $candidate_id;
$candResult = $cand_model->SaveorUpdateCandidateData($candData, $where);
}
} else {
$idata = array('interview_status' => trim($interview_status), 'isactive' => 1, 'modifiedby' => trim($loginUserId), 'modifieddate' => gmdate("Y-m-d H:i:s"));
$iwhere = "id = " . $id;
$tableid = $id;
$actionflag = 2;
$iresult = $interview_model->SaveorUpdateInterviewData($idata, $iwhere);
$candData = array('cand_status' => 'Scheduled', 'modifiedby' => trim($loginUserId), 'modifieddate' => gmdate("Y-m-d H:i:s"));
if ($cand_status && $cand_status != '0') {
$candData['cand_status'] = $cand_status;
}
$where = "id = " . $candidate_id;
$candResult = $cand_model->SaveorUpdateCandidateData($candData, $where);
//send email
$currentInterviewData = $requi_model->getinterviewdetails($id);
$requisition_data = $requi_model->getrequisitiondetails($currentInterviewData["req_id"]);
$currentrequisition_data = $requi_model->getrequisitiondetails($currentInterviewData["req_id"]);
$cand_data = $cand_model->getCandidateById($candidate_id);
//$hrgroupemail = $requi_model->getgroupemailid("REQ_HR", $requisition_data["department_id"]);
示例2: save
//.........这里部分代码省略.........
//$this->view->interview_type = $interview_mode;
//$this->view->interview_mode_details = $interview_Type_Details;
//$this->view->interview_location = $int_location;
//$this->view->interview_date = $interview_date;
//$this->view->interview_time = sapp_Global::change_time($interview_time, 'view');
//$this->view->requisition_code = $requisition_data['requisition_code'];
//$text = $view->render('mailtemplates/interviewrounds.phtml');
//$options['subject'] = APPLICATION_NAME . ': Interview schedule';
//$options['header'] = 'Interview schedule';
//$options['toEmail'] = $email;
//$options['toName'] = $ename;
//$options['message'] = $description;
//$options['location'] = $int_location;
//$options['interviewdate'] = $interview_date;
//$options['starttime'] = sapp_Global::add_time($interview_time, 'view', 0);
//$options['endtime'] = sapp_Global::add_time($interview_time, 'view', 3600);
//Interview Calendar Invite will be send from login user account
//$options['fromEmail'] = $loginuser_person_data['emailaddress'];
//$options['fromName'] = $loginuser_person_data['userfullname'];
//$options['fromEmail'] = SUPERADMIN_EMAIL;
//$options['fromName'] = "recurit@deltaintech.com";
//$options['calUniqueID'] = $cal_unique_id;
$calRequest = 'REQUEST';
if ($round_status == "Cancelled") {
$calRequest = 'CANCEL';
}
$interviewpanelnamesemailaddresss = $requi_model->GetInterviewPanelMamesEmailaddress($interview_panel);
foreach ($interviewpanelnamesemailaddresss as $interviewpanelnamesemailaddress) {
//sapp_Global::_sendCalendarEmail($options);
$from_name = trim($loginuser_person_data['userfullname']);
$from_address = trim($loginuser_person_data['emailaddress']);
$to_name = trim($interviewpanelnamesemailaddress['userfullname']);
$to_address = trim($interviewpanelnamesemailaddress['emailaddress']);
$startTime = sapp_Global::_getInterviewStartDateTime(sapp_Global::change_date($interview_date), sapp_Global::change_time(trim($interview_time)), 3600);
$endTime = sapp_Global::_getInterviewStartDateTime(sapp_Global::change_date($interview_date), sapp_Global::change_time(trim($interview_time)));
$subject = APPLICATION_NAME . ': Interview schedule';
$location = $int_location;
sapp_Global::sendIcalEvent($from_name, $from_address, $to_name, $to_address, $startTime, $endTime, $subject, $description, $location, $calRequest, $cal_unique_id);
}
$irwhere = "id = " . $result1;
$irdata = array('calendarinviteid' => $cal_unique_id);
$interview_round_model = new Default_Model_Interviewrounddetails();
$ir_result1 = $interview_round_model->SaveorUpdateInterviewroundData($irdata, $irwhere);
$this->view->eventact = 'updated';
$actionflag = 1;
$menumodel = new Default_Model_Menu();
$objidArr = $menumodel->getMenuObjID('/scheduleinterviews');
$objID = $objidArr[0]['id'];
$result = sapp_Global::logManager($objID, $actionflag, $loginUserId, $intrvwId);
$close = 'close';
$this->view->popup = $close;
$this->view->ermsg = '';
}
} else {
$data = array('candidate_id' => $candid, 'req_id' => $reqId, 'interview_id' => trim($intrvwId), 'interviewer_id' => $interview_id, 'interview_mode' => trim($interview_mode), 'interview_mode_details' => $interview_Type_Details, 'int_location' => trim($int_location), 'int_country' => trim($this->_getParam('country', null)), 'int_state' => trim($this->_getParam('state', null)), 'int_city' => trim($this->_getParam('city', null)), 'interview_time' => sapp_Global::change_time(trim($interview_time), 'database'), 'interview_date' => sapp_Global::change_date(trim($interview_date), 'database'), 'interview_round' => trim($interview_round), 'interview_feedback' => trim($interview_feedback), 'interview_comments' => trim($interview_comments), 'round_status' => trim($round_status), 'isactive' => 1, 'createdby' => trim($loginUserId), 'modifiedby' => trim($loginUserId), 'createddate' => gmdate("Y-m-d H:i:s"), 'modifieddate' => gmdate("Y-m-d H:i:s"), 'interview_panel' => $interview_panel);
if ($interviewrnd_id != null) {
$roundnumberData = $intrvwModel->getinterviewroundnumber($interviewrnd_id);
$roundnumber = $roundnumberData['interview_round_number'];
}
$data['interview_round_number'] = $roundnumber + 1;
$currentinterviewroundnumber = $roundnumber;
$where = "";
$actionflag = 1;
if ($id != '') {
//update skill matrix to DB
if ($round_status == "Schedule for next round" || $round_status == "Qualified" || $round_status == "Selected" || $round_status == "Disqualified") {