19 declare(strict_types=1);
32 $this->
ctrl->setParameter($this,
'view', $this->viewSettings->getCurrentView());
37 $this->
lng->loadLanguageModule(
'rep');
39 $this->
factory->panel()->standard(
41 $this->
factory->legacy()->content($this->
lng->txt(
'rep_mo_mem_dash'))
51 $start = isset($item[
'start']) && $item[
'start'] instanceof
ilDateTime ? $item[
'start'] :
null;
52 $end = isset($item[
'end']) && $item[
'end'] instanceof
ilDateTime ? $item[
'end'] :
null;
55 (
int) $item[
'ref_id'],
56 (
int) $item[
'obj_id'],
75 if ($this->
access->checkAccess(
'leave',
'', $ref_id)) {
79 $members->delete($this->
user->getId());
81 $members->sendUnsubscribeNotificationToAdmins($this->
user->getId());
82 $members->sendNotification(
90 $members->delete($this->
user->getId());
92 $members->sendNotification(
96 $members->sendNotification(
109 $this->main_tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'mmbr_unsubscribed_from_objs'),
true);
110 $this->
ctrl->returnToParent($this);
120 return $this->
lng->txt(
'pd_unsubscribe_multiple_memberships');
getRemoveMultipleActionText()
confirmedRemove(array $ids)
const TYPE_NOTIFICATION_UNSUBSCRIBE
static _lookupObjId(int $ref_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
const TYPE_UNSUBSCRIBE_MEMBER
const VIEW_MY_MEMBERSHIPS
static _lookupType(int $id, bool $reference=false)
const TYPE_UNSUBSCRIBE_MEMBER
static checkForumsExistsDelete(int $ref_id, int $user_id)