ILIAS
release_8 Revision v8.19
|
Class ilForumNotificationDataProvider. More...
Public Member Functions | |
__construct (ilForumPost $objPost, int $ref_id, 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 () | |
setPosAuthorId (int $pos_author_id) | |
getPosAuthorId () | |
getDeletedBy () | |
Data Fields | |
int | $pos_author_id = 0 |
ilForumPost | $objPost |
Protected Member Functions | |
read () | |
Protected Attributes | |
int | $ref_id = 0 |
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 | |
ilDBInterface | $db |
ilAccessHandler | $access |
ilObjUser | $user |
ilTree | $tree |
ilForumNotificationCache | $notificationCache |
Class ilForumNotificationDataProvider.
Definition at line 25 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::__construct | ( | ilForumPost | $objPost, |
int | $ref_id, | ||
ilForumNotificationCache | $notificationCache | ||
) |
Definition at line 46 of file class.ilForumNotificationDataProvider.php.
References $DIC, $notificationCache, $objPost, $ref_id, ilObject\_lookupObjId(), ILIAS\Repository\access(), read(), and ILIAS\Repository\user().
ilForumNotificationDataProvider::closestContainer | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 87 of file class.ilForumNotificationDataProvider.php.
References $closest_container.
|
private |
ilDBStatement | $statement |
Definition at line 492 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 293 of file class.ilForumNotificationDataProvider.php.
References $container, and ilObjectFactory\getInstanceByRefId().
Referenced by readForumData().
ilForumNotificationDataProvider::getAttachments | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 147 of file class.ilForumNotificationDataProvider.php.
References $attachments.
ilForumNotificationDataProvider::getCensorshipComment | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 142 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getDeletedBy | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 508 of file class.ilForumNotificationDataProvider.php.
References ILIAS\Repository\user().
|
private |
Definition at line 518 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 82 of file class.ilForumNotificationDataProvider.php.
References $forum_id.
Referenced by getForumNotificationRecipients().
ilForumNotificationDataProvider::getForumNotificationRecipients | ( | int | $notification_type | ) |
int | $notification_type |
Definition at line 335 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 97 of file class.ilForumNotificationDataProvider.php.
References $forum_title.
ilForumNotificationDataProvider::getImportName | ( | ) |
Definition at line 162 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getObjId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 67 of file class.ilForumNotificationDataProvider.php.
References $obj_id.
Referenced by createRecipientArray(), readAttachments(), readForumData(), and readThreadTitle().
ilForumNotificationDataProvider::getPosAuthorId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 465 of file class.ilForumNotificationDataProvider.php.
References $pos_author_id.
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getPosDisplayUserId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 117 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUserName().
ilForumNotificationDataProvider::getPostActivationRecipients | ( | ) |
Definition at line 442 of file class.ilForumNotificationDataProvider.php.
References ilForum\_getModerators(), and getRefId().
Referenced by ilForumAppEventListener\delegateNotification().
ilForumNotificationDataProvider::getPostCensoredDate | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 137 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostDate | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 122 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 77 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostMessage | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 112 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostTitle | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 107 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostUpdate | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 127 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::getPostUpdateUserId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 167 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName().
ilForumNotificationDataProvider::getPostUpdateUserName | ( | ilLanguage | $user_lang | ) |
Implements ilForumNotificationMailData.
Definition at line 189 of file class.ilForumNotificationDataProvider.php.
References $update_user_name, getImportName(), getPosAuthorId(), getPostUpdateUserId(), getPosUserAlias(), and getPublicUserInformation().
ilForumNotificationDataProvider::getPostUserName | ( | ilLanguage | $user_lang | ) |
Implements ilForumNotificationMailData.
Definition at line 172 of file class.ilForumNotificationDataProvider.php.
References $post_user_name, getImportName(), getPosAuthorId(), getPosDisplayUserId(), getPosUserAlias(), and getPublicUserInformation().
ilForumNotificationDataProvider::getPosUserAlias | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 152 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName(), and getPostUserName().
ilForumNotificationDataProvider::getPublicUserInformation | ( | ilForumAuthorInformation | $authorinfo | ) |
Definition at line 212 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 62 of file class.ilForumNotificationDataProvider.php.
References $ref_id.
Referenced by getPostActivationRecipients(), and readForumData().
|
private |
int | $objId |
Definition at line 474 of file class.ilForumNotificationDataProvider.php.
References ilObject\_getAllReferences().
Referenced by createRecipientArray().
ilForumNotificationDataProvider::getThreadId | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 72 of file class.ilForumNotificationDataProvider.php.
Referenced by getThreadNotificationRecipients().
ilForumNotificationDataProvider::getThreadNotificationRecipients | ( | int | $notification_type | ) |
int | $notification_type |
Definition at line 376 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 102 of file class.ilForumNotificationDataProvider.php.
References $thread_title.
ilForumNotificationDataProvider::isAnonymized | ( | ) |
Definition at line 157 of file class.ilForumNotificationDataProvider.php.
References $is_anonymized.
Referenced by getPublicUserInformation().
ilForumNotificationDataProvider::isPostCensored | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 132 of file class.ilForumNotificationDataProvider.php.
ilForumNotificationDataProvider::providesClosestContainer | ( | ) |
Implements ilForumNotificationMailData.
Definition at line 92 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 227 of file class.ilForumNotificationDataProvider.php.
References readAttachments(), readForumData(), and readThreadTitle().
Referenced by __construct().
|
private |
Definition at line 316 of file class.ilForumNotificationDataProvider.php.
References ANONYMOUS_USER_ID, ilFileDataForum\getFilesOfPost(), getObjId(), and ilForumProperties\isSendAttachmentsByMailEnabled().
Referenced by read().
|
private |
Definition at line 258 of file class.ilForumNotificationDataProvider.php.
References $container, determineClosestContainer(), getObjId(), getRefId(), and ILIAS\Repository\int().
Referenced by read().
|
private |
Definition at line 234 of file class.ilForumNotificationDataProvider.php.
References getObjId().
Referenced by read().
ilForumNotificationDataProvider::setPosAuthorId | ( | int | $pos_author_id | ) |
Definition at line 460 of file class.ilForumNotificationDataProvider.php.
References $pos_author_id.
|
private |
Definition at line 40 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 37 of file class.ilForumNotificationDataProvider.php.
Referenced by getAttachments().
|
protected |
Definition at line 34 of file class.ilForumNotificationDataProvider.php.
Referenced by closestContainer().
|
private |
Definition at line 39 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 32 of file class.ilForumNotificationDataProvider.php.
Referenced by getForumId().
|
protected |
Definition at line 35 of file class.ilForumNotificationDataProvider.php.
Referenced by getForumTitle().
|
protected |
Definition at line 43 of file class.ilForumNotificationDataProvider.php.
Referenced by isAnonymized().
|
private |
Definition at line 44 of file class.ilForumNotificationDataProvider.php.
Referenced by __construct().
|
protected |
Definition at line 28 of file class.ilForumNotificationDataProvider.php.
Referenced by getObjId().
ilForumPost ilForumNotificationDataProvider::$objPost |
Definition at line 38 of file class.ilForumNotificationDataProvider.php.
Referenced by __construct().
int ilForumNotificationDataProvider::$pos_author_id = 0 |
Definition at line 31 of file class.ilForumNotificationDataProvider.php.
Referenced by getPosAuthorId(), and setPosAuthorId().
|
protected |
Definition at line 29 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUserName().
|
protected |
Definition at line 27 of file class.ilForumNotificationDataProvider.php.
Referenced by __construct(), and getRefId().
|
protected |
Definition at line 36 of file class.ilForumNotificationDataProvider.php.
Referenced by getThreadTitle().
|
private |
Definition at line 42 of file class.ilForumNotificationDataProvider.php.
|
protected |
Definition at line 30 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName().
|
private |
Definition at line 41 of file class.ilForumNotificationDataProvider.php.