19 declare(strict_types=1);
31 $this->
user = $DIC->user();
37 $this->shared_to_obj_ids = $a_val;
40 public function send(): bool
42 $rcp = $this->
user->getId();
65 $this->
getMail()->appendInstallationSignature(
true);
75 foreach ($this->shared_to_obj_ids as
$obj_id) {
88 if (count($users) > 1) {
90 $this->
appendBody(
"\n" . implode(
"\n", $users));
92 if (count($users) === 1) {
108 parent::initLanguage($a_usr_id);
appendBody(string $a_body)
initLanguage(int $a_usr_id)
sendMail(array $a_rcp, bool $a_parse_recipients=true)
const PERMISSION_ALL_PASSWORD
const PERMISSION_REGISTERED
appendObjectInformation()
Base class for course/group mail notifications.
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
static _lookupTitle(int $obj_id)
static getSalutation(int $a_usr_id, ?ilLanguage $a_language=null)
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
getLanguageText(string $a_keyword)
getObjectTitle(bool $a_shorten=false)
__construct(Container $dic, ilPlugin $plugin)
setSharedToObjectIds(array $a_val)
setSubject(string $a_subject)
static _lookupType(int $id, bool $reference=false)