5 declare(strict_types=1);
50 $this->lng->loadLanguageModule(
'mail');
51 $this->lng->loadLanguageModule(
'search');
66 return $this->back_target;
71 $this->back_target = $target;
76 $next_class = $this->ctrl->getNextClass($this);
77 $cmd = $this->ctrl->getCmd();
79 $this->ctrl->setReturn($this,
'');
81 switch ($next_class) {
84 case 'sendMailToSelectedUsers':
87 case 'showSelectableUsers':
95 throw new Exception(
'Unknown command ' . $cmd);
104 $this->tpl->loadStandardTemplate();
108 $this->tpl->setContent($tbl->getHTML());
116 $user_id = $assignment->getUserId();
122 $publicName =
$name[
'lastname'] .
', ' .
$name[
'firstname'];
125 $data[$user_id][
'user_id'] = $user_id;
127 $data[$user_id][
'name'] = $publicName;
135 if (!isset(
$_POST[
'user_ids']) || !count(
$_POST[
'user_ids'])) {
142 foreach (
$_POST[
'user_ids'] as $usr_id) {
146 if (!count(array_filter($rcps))) {
174 if ($this->access->checkAccess(
'write',
"", $ref_id)) {
175 $context_array = array(
183 return $context_array;
193 $link = chr(13) . chr(10) . chr(13) . chr(10);
194 $link .= $this->lng->txt(
'prg_mail_permanent_link');
195 $link .= chr(13) . chr(10) . chr(13) . chr(10);
196 include_once
'Services/Link/classes/class.ilLink.php';
198 return rawurlencode(base64_encode($link));
204 $obj = $assignment->getStudyProgramme();
205 return $obj->getRefId();
static _lookupLogin($a_user_id)
lookup login
static _lookupName($a_user_id)
lookup user name
setAssignments(array $assignments)
This class provides processing control methods.
sendMailToSelectedUsers()
Interface ilAccessHandler.
setBackTarget(string $target)
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
__construct(ilCtrl $ctrl, ilGlobalTemplateInterface $tpl, ilLanguage $lng, ilAccessHandler $access)
static _lookupPref($a_usr_id, $a_keyword)
static redirect($a_script)
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")