| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
Class ilForumNotificationDataProvider. More...
 Inheritance diagram for ilForumNotificationDataProvider:
 Collaboration diagram for ilForumNotificationDataProvider: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().
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilForumNotificationDataProvider::determineClosestContainer | ( | int | $frm_ref_id | ) | 
Definition at line 292 of file class.ilForumNotificationDataProvider.php.
References $container, $ref_id, and ilObjectFactory\getInstanceByRefId().
Referenced by readForumData().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
      
  | 
  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().
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getForumId | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 78 of file class.ilForumNotificationDataProvider.php.
References $forum_id.
Referenced by getForumNotificationRecipients().
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getObjId | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 63 of file class.ilForumNotificationDataProvider.php.
References $obj_id.
Referenced by createRecipientArray(), readAttachments(), readForumData(), and readThreadTitle().
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getPosAuthorId | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 457 of file class.ilForumNotificationDataProvider.php.
References $pos_author_id.
Referenced by getPostUpdateUserName(), and getPostUserName().
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getPosDisplayUserId | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 113 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUserName().
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getPostActivationRecipients | ( | ) | 
Definition at line 439 of file class.ilForumNotificationDataProvider.php.
References ilForum\_getModerators(), and getRefId().
Referenced by ilForumAppEventListener\delegateNotification().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getPostUpdateUserName | ( | ilLanguage | $user_lang | ) | 
Implements ilForumNotificationMailData.
Definition at line 188 of file class.ilForumNotificationDataProvider.php.
References $update_user_name, getImportName(), getPosAuthorId(), getPostUpdateUserId(), getPosUserAlias(), and getPublicUserInformation().
 Here is the call graph for this function:| ilForumNotificationDataProvider::getPostUserName | ( | ilLanguage | $user_lang | ) | 
Implements ilForumNotificationMailData.
Definition at line 171 of file class.ilForumNotificationDataProvider.php.
References $post_user_name, getImportName(), getPosAuthorId(), getPosDisplayUserId(), getPosUserAlias(), and getPublicUserInformation().
 Here is the call graph for this function:| ilForumNotificationDataProvider::getPosUserAlias | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 151 of file class.ilForumNotificationDataProvider.php.
Referenced by getPostUpdateUserName(), and getPostUserName().
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getRefId | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 58 of file class.ilForumNotificationDataProvider.php.
References $ref_id.
Referenced by getPostActivationRecipients(), and readForumData().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 465 of file class.ilForumNotificationDataProvider.php.
References ilObject\_getAllReferences().
Referenced by createRecipientArray().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilForumNotificationDataProvider::getThreadId | ( | ) | 
Implements ilForumNotificationMailData.
Definition at line 68 of file class.ilForumNotificationDataProvider.php.
Referenced by getThreadNotificationRecipients().
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:| 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.
      
  | 
  protected | 
Definition at line 226 of file class.ilForumNotificationDataProvider.php.
References readAttachments(), readForumData(), and readThreadTitle().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 315 of file class.ilForumNotificationDataProvider.php.
References ANONYMOUS_USER_ID, ilFileDataForum\getFilesOfPost(), getObjId(), and ilForumProperties\isSendAttachmentsByMailEnabled().
Referenced by read().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 257 of file class.ilForumNotificationDataProvider.php.
References $container, determineClosestContainer(), getObjId(), getRefId(), and ILIAS\Repository\int().
Referenced by read().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 233 of file class.ilForumNotificationDataProvider.php.
References getObjId().
Referenced by read().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 39 of file class.ilForumNotificationDataProvider.php.
      
  | 
  protected | 
Definition at line 37 of file class.ilForumNotificationDataProvider.php.
Referenced by getAttachments().
      
  | 
  protected | 
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.