25 $this->sender =
$user;
54 $rcp_lng->loadLanguageModule(
'buddysystem');
57 $notification->setTitleVar(
'buddy_notification_contact_request', array(),
'buddysystem');
59 $personalProfileLink = $rcp_lng->txt(
'buddy_noti_cr_profile_not_published');
67 'APPROVE_REQUEST' =>
'<a href="' .
ilLink::_getStaticLink($this->sender->getId(),
'usr',
true,
'_contact_approved') .
'">' . $rcp_lng->txt(
'buddy_notification_contact_request_link_osd') .
'</a>',
68 'IGNORE_REQUEST' =>
'<a href="' .
ilLink::_getStaticLink($this->sender->getId(),
'usr',
true,
'_contact_ignored') .
'">' . $rcp_lng->txt(
'buddy_notification_contact_request_ignore_osd') .
'</a>',
71 $notification->setShortDescriptionVar(
'buddy_notification_contact_request_short', $bodyParams,
'buddysystem');
77 'APPROVE_REQUEST_TXT' => $rcp_lng->txt(
'buddy_notification_contact_request_link'),
79 'IGNORE_REQUEST_TXT' => $rcp_lng->txt(
'buddy_notification_contact_request_ignore'),
81 'PERSONAL_PROFILE_LINK' => $personalProfileLink,
83 $notification->setLongDescriptionVar(
'buddy_notification_contact_request_long', $bodyParams,
'buddysystem');
85 $notification->setAutoDisable(
false);
88 $notification->setIconPath(
'templates/default/images/icon_usr.svg');
89 $notification->setHandlerParam(
'mail.sender', ANONYMOUS_USER_ID);
90 $notification->notifyByUsers(array(
$user->getId()));
101 if (is_numeric($portfolioId) && $portfolioId > 0) {
102 $accessHandler = new \ilPortfolioAccessHandler();
103 return $accessHandler->checkAccessOfUser($recipientUsrId,
'read',
'', $portfolioId);
107 $this->sender->getPref(
'public_profile') ===
'y' ||
108 $this->sender->getPref(
'public_profile') ===
'g'
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
setRecipientIds(array $recipient_ids)
Describes a notification and provides methods for publishing this notification.
__construct(ilObjUser $user, \ilSetting $settings)
static _getLanguage($a_lang_key='')
Get langauge object.
hasPublicProfile($recipientUsrId)
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static getDefaultPortfolio($a_user_id)
Get default portfolio of user.
static getSalutation($a_usr_id, ilLanguage $a_language=null)