|
|
|
|
@ -148,8 +148,9 @@ class CourseRequestManager |
|
|
|
|
$recipient_email_admin = get_setting('emailAdministrator'); |
|
|
|
|
|
|
|
|
|
$userInfo = api_get_user_info($user_id); |
|
|
|
|
$plugin = new AppPlugin(); |
|
|
|
|
$additionalParameters = array( |
|
|
|
|
'smsType' => ClockworksmsPlugin::NEW_COURSE_SUGGESTED_TEACHER, |
|
|
|
|
'smsType' => constant($plugin->getSMSPluginName().'::NEW_COURSE_SUGGESTED_TEACHER'), |
|
|
|
|
'userId' => $user_id, |
|
|
|
|
'userUsername' => $userInfo['username'] |
|
|
|
|
); |
|
|
|
|
@ -185,8 +186,9 @@ class CourseRequestManager |
|
|
|
|
$recipient_name_teacher = $sender_name_teacher; |
|
|
|
|
$recipient_email_teacher = $sender_email_teacher; |
|
|
|
|
|
|
|
|
|
$plugin = new AppPlugin(); |
|
|
|
|
$additionalParameters = array( |
|
|
|
|
'smsType' => ClockworksmsPlugin::COURSE_OPENING_REQUEST_CODE_REGISTERED, |
|
|
|
|
'smsType' => constant($plugin->getSMSPluginName().'::COURSE_OPENING_REQUEST_CODE_REGISTERED'), |
|
|
|
|
'userId' => $user_info['user_id'], |
|
|
|
|
'courseCode' => $wanted_code |
|
|
|
|
); |
|
|
|
|
@ -466,8 +468,9 @@ class CourseRequestManager |
|
|
|
|
$recipient_email = $user_info['mail']; |
|
|
|
|
$extra_headers = 'Bcc: '.$sender_email; |
|
|
|
|
|
|
|
|
|
$plugin = new AppPlugin(); |
|
|
|
|
$additionalParameters = array( |
|
|
|
|
'smsType' => ClockworksmsPlugin::COURSE_OPENING_REQUEST_CODE_APPROVED, |
|
|
|
|
'smsType' => constant($plugin->getSMSPluginName().'::COURSE_OPENING_REQUEST_CODE_APPROVED'), |
|
|
|
|
'userId' => $user_id, |
|
|
|
|
'courseCode' => $course_info['code'] |
|
|
|
|
); |
|
|
|
|
@ -544,8 +547,9 @@ class CourseRequestManager |
|
|
|
|
$recipient_email = $user_info['mail']; |
|
|
|
|
$extra_headers = 'Bcc: '.$sender_email; |
|
|
|
|
|
|
|
|
|
$plugin = new AppPlugin(); |
|
|
|
|
$additionalParameters = array( |
|
|
|
|
'smsType' => ClockworksmsPlugin::COURSE_OPENING_REQUEST_CODE_REJECTED, |
|
|
|
|
'smsType' => constant($plugin->getSMSPluginName().'::COURSE_OPENING_REQUEST_CODE_REJECTED'), |
|
|
|
|
'userId' => $user_id, |
|
|
|
|
'courseCode' => $code |
|
|
|
|
); |
|
|
|
|
@ -621,8 +625,9 @@ class CourseRequestManager |
|
|
|
|
$recipient_email = $user_info['mail']; |
|
|
|
|
$extra_headers = 'Bcc: '.$sender_email; |
|
|
|
|
|
|
|
|
|
$plugin = new AppPlugin(); |
|
|
|
|
$additionalParameters = array( |
|
|
|
|
'smsType' => ClockworksmsPlugin::COURSE_OPENING_REQUEST_CODE, |
|
|
|
|
'smsType' => constant($plugin->getSMSPluginName().'::COURSE_OPENING_REQUEST_CODE'), |
|
|
|
|
'userId' => $user_id, |
|
|
|
|
'courseCode' => $code |
|
|
|
|
); |
|
|
|
|
|