ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Class ilForumNotificationDataProvider. More...
Public Member Functions | |
__construct (public ilForumPost $objPost, protected int $ref_id, private readonly ilForumNotificationCache $notificationCache) | |
getRefId () | |
getObjId () | |
getThreadId () | |
getPostId () | |
getForumId () | |
closestContainer () | |
providesClosestContainer () | |
getForumTitle () | |
getThreadTitle () | |
getPostTitle () | |
getPostMessage () | |
getPosDisplayUserId () | |
getPostDate () | |
getPostUpdate () | |
isPostCensored () | |
getPostCensoredDate () | |
getCensorshipComment () | |
getAttachments () | |
getPosUserAlias () | |
isAnonymized () | |
getImportName () | |
getPostUpdateUserId () | |
getPostUserName (ilLanguage $user_lang) | |
getPostUpdateUserName (ilLanguage $user_lang) | |
getPublicUserInformation (ilForumAuthorInformation $authorinfo) | |
determineClosestContainer (int $frm_ref_id) | |
getForumNotificationRecipients (int $notification_type) | |
getThreadNotificationRecipients (int $notification_type) | |
getPostActivationRecipients () | |
getPosAuthorId () | |
getDeletedBy () | |
Data Fields | |
int | $pos_author_id = 0 |
Protected Member Functions | |
read () | |
Protected Attributes | |
int | $obj_id = 0 |
string | $post_user_name = null |
string | $update_user_name = null |
int | $forum_id = 0 |
ilObject | $closest_container = null |
string | $forum_title = '' |
string | $thread_title = '' |
array | $attachments = [] |
bool | $is_anonymized = false |
Private Member Functions | |
readThreadTitle () | |
readForumData () | |
readAttachments () | |
getRefIdsByObjId (int $objId) | |
createRecipientArray (ilDBStatement $statement) | |
getEventType (int $notification_type) | |
Private Attributes | |
readonly ilDBInterface | $db |
readonly ilAccessHandler | $access |
readonly ilObjUser | $user |
readonly ilTree | $tree |
Class ilForumNotificationDataProvider.
Definition at line 25 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::__construct | ( | public ilForumPost | $objPost, |
protected int | $ref_id, | ||
private readonly ilForumNotificationCache | $notificationCache | ||
) |
Definition at line 44 of file class.ilForumNotificationDataProvider.php.
References $DIC, ilObject\_lookupObjId(), ILIAS\Repository\access(), read(), and ILIAS\Repository\user().
ilForumNotificationDataProvider::closestContainer | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 83 of file class.ilForumNotificationDataProvider.php.
References $closest_container.
|
private |
Definition at line 482 of file class.ilForumNotificationDataProvider.php.
References $refId, ILIAS\Repository\access(), getObjId(), getRefIdsByObjId(), and ILIAS\Repository\int().
Referenced by getForumNotificationRecipients(), and getThreadNotificationRecipients().
ilForumNotificationDataProvider::determineClosestContainer | ( | int | $frm_ref_id | ) |
Definition at line 292 of file class.ilForumNotificationDataProvider.php.
References $container, $ref_id, ilObjectFactory\getInstanceByRefId(), and null.
Referenced by readForumData().
ilForumNotificationDataProvider::getAttachments | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 146 of file class.ilForumNotificationDataProvider.php.
References $attachments.
ilForumNotificationDataProvider::getCensorshipComment | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 138 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getDeletedBy | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 498 of file class.ilForumNotificationDataProvider.php.
References ILIAS\Repository\user().
|
private |
Definition at line 508 of file class.ilForumNotificationDataProvider.php.
References ilForumNotificationEvents\CENSORED, ilForumNotificationEvents\POST_DELETED, ilForumNotificationEvents\THREAD_DELETED, ilForumMailNotification\TYPE_POST_CENSORED, ilForumMailNotification\TYPE_POST_DELETED, ilForumMailNotification\TYPE_POST_UNCENSORED, ilForumMailNotification\TYPE_POST_UPDATED, ilForumMailNotification\TYPE_THREAD_DELETED, ilForumNotificationEvents\UNCENSORED, and ilForumNotificationEvents\UPDATED.
Referenced by getForumNotificationRecipients(), and getThreadNotificationRecipients().
ilForumNotificationDataProvider::getForumId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 78 of file class.ilForumNotificationDataProvider.php.
References $forum_id.
Referenced by getForumNotificationRecipients().
ilForumNotificationDataProvider::getForumNotificationRecipients | ( | int | $notification_type | ) |
Definition at line 333 of file class.ilForumNotificationDataProvider.php.
References $res, createRecipientArray(), getEventType(), getForumId(), and ILIAS\Repository\user().
Referenced by ilForumAppEventListener\delegateNotification().
ilForumNotificationDataProvider::getForumTitle | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 93 of file class.ilForumNotificationDataProvider.php.
References $forum_title.
ilForumNotificationDataProvider::getImportName | ( | ) |
Definition at line 161 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getObjId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 63 of file class.ilForumNotificationDataProvider.php.
References $obj_id.
Referenced by createRecipientArray(), readAttachments(), readForumData(), and readThreadTitle().
ilForumNotificationDataProvider::getPosAuthorId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 457 of file class.ilForumNotificationDataProvider.php.
References $pos_author_id.
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getPosDisplayUserId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 113 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUserName().
ilForumNotificationDataProvider::getPostActivationRecipients | ( | ) |
Definition at line 439 of file class.ilForumNotificationDataProvider.php.
References ilForum\_getModerators(), and getRefId().
Referenced by ilForumAppEventListener\delegateNotification().
ilForumNotificationDataProvider::getPostCensoredDate | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 133 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostDate | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 118 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 73 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostMessage | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 108 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostTitle | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 103 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostUpdate | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 123 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostUpdateUserId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 166 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName().
ilForumNotificationDataProvider::getPostUpdateUserName | ( | ilLanguage | $user_lang | ) |
Implements ilForumNotificationMailData.
Definition at line 188 of file class.ilForumNotificationDataProvider.php.
References $update_user_name, getImportName(), getPosAuthorId(), getPostUpdateUserId(), getPosUserAlias(), getPublicUserInformation(), and null.
ilForumNotificationDataProvider::getPostUserName | ( | ilLanguage | $user_lang | ) |
Implements ilForumNotificationMailData.
Definition at line 171 of file class.ilForumNotificationDataProvider.php.
References $post_user_name, getImportName(), getPosAuthorId(), getPosDisplayUserId(), getPosUserAlias(), getPublicUserInformation(), and null.
ilForumNotificationDataProvider::getPosUserAlias | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 151 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getPublicUserInformation | ( | ilForumAuthorInformation | $authorinfo | ) |
Definition at line 211 of file class.ilForumNotificationDataProvider.php.
References ilForumAuthorInformation\getAuthorName(), ilForumAuthorInformation\getAuthorShortName(), ilForumAuthorInformation\hasSuffix(), and isAnonymized().
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getRefId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 58 of file class.ilForumNotificationDataProvider.php.
References $ref_id.
Referenced by getPostActivationRecipients(), and readForumData().
|
private |
Definition at line 465 of file class.ilForumNotificationDataProvider.php.
References ilObject\_getAllReferences().
Referenced by createRecipientArray().
ilForumNotificationDataProvider::getThreadId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 68 of file class.ilForumNotificationDataProvider.php.
Referenced by getThreadNotificationRecipients().
ilForumNotificationDataProvider::getThreadNotificationRecipients | ( | int | $notification_type | ) |
Definition at line 373 of file class.ilForumNotificationDataProvider.php.
References $res, createRecipientArray(), getEventType(), ilForumPost\getPosAuthorId(), getThreadId(), and ILIAS\Repository\user().
Referenced by ilForumAppEventListener\delegateNotification().
ilForumNotificationDataProvider::getThreadTitle | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 98 of file class.ilForumNotificationDataProvider.php.
References $thread_title.
ilForumNotificationDataProvider::isAnonymized | ( | ) |
Definition at line 156 of file class.ilForumNotificationDataProvider.php.
References $is_anonymized.
Referenced by getPublicUserInformation().
ilForumNotificationDataProvider::isPostCensored | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 128 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::providesClosestContainer | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 88 of file class.ilForumNotificationDataProvider.php.
References null.
|
protected |
Definition at line 226 of file class.ilForumNotificationDataProvider.php.
References readAttachments(), readForumData(), and readThreadTitle().
Referenced by __construct().
|
private |
Definition at line 315 of file class.ilForumNotificationDataProvider.php.
References ANONYMOUS_USER_ID, ilFileDataForum\getFilesOfPost(), getObjId(), and ilForumProperties\isSendAttachmentsByMailEnabled().
Referenced by read().
|
private |
Definition at line 257 of file class.ilForumNotificationDataProvider.php.
References $container, determineClosestContainer(), getObjId(), getRefId(), ILIAS\Repository\int(), and null.
Referenced by read().
|
private |
Definition at line 233 of file class.ilForumNotificationDataProvider.php.
References getObjId().
Referenced by read().
|
private |
Definition at line 39 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 37 of file class.ilForumNotificationDataProvider.php.
Referenced by getAttachments().
Definition at line 33 of file class.ilForumNotificationDataProvider.php.
Referenced by closestContainer().
|
private |
Definition at line 38 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 31 of file class.ilForumNotificationDataProvider.php.
Referenced by getForumId().
|
protected |
Definition at line 34 of file class.ilForumNotificationDataProvider.php.
Referenced by getForumTitle().
|
protected |
Definition at line 42 of file class.ilForumNotificationDataProvider.php.
Referenced by isAnonymized().
|
protected |
Definition at line 27 of file class.ilForumNotificationDataProvider.php.
Referenced by getObjId().
int ilForumNotificationDataProvider::$pos_author_id = 0 |
Definition at line 30 of file class.ilForumNotificationDataProvider.php.
Referenced by getPosAuthorId().
|
protected |
Definition at line 28 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUserName().
|
protected |
Definition at line 35 of file class.ilForumNotificationDataProvider.php.
Referenced by getThreadTitle().
|
private |
Definition at line 41 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 29 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName().
|
private |
Definition at line 40 of file class.ilForumNotificationDataProvider.php.