ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilLearningModuleNotification class. More...
Public Member Functions | |
__construct (string $a_action, int $a_type, ilObjLearningModule $a_learning_module, int $a_page_id, string $a_comment=null) | |
ilLearningModuleNotification constructor. More... | |
send () | |
Generate notifications and send them if necessary. More... | |
Data Fields | |
const | ACTION_COMMENT = "comment" |
const | ACTION_UPDATE = "update" |
Protected Member Functions | |
getLink () | |
Get Link to the LM page. More... | |
getPageTitle () | |
Get formatted title page. More... | |
getMailSubject (ilLanguage $ulng) | |
get Subject of mail/notification More... | |
getMailBody (ilLanguage $a_ulng, int $a_user_id) | |
get email/notification body More... | |
getPreviewText (ilLanguage $a_ulng) | |
Get first 500 characters of the recently added content behavior copied from ilWikiUtil->sendNotification. More... | |
Protected Attributes | |
$ilUser | |
$ilAccess | |
$lng | |
$lm_set | |
$action | |
$type | |
$learning_module | |
$page_id | |
$comment | |
$link | |
$lm_ref_id | |
$pg_title | |
Class ilLearningModuleNotification class.
//TODO create an interface for notifications contract.(ilnotification?).Similar code in ilwikipage, ilblogposting
Definition at line 14 of file class.ilLearningModuleNotification.php.
ilLearningModuleNotification::__construct | ( | string | $a_action, |
int | $a_type, | ||
ilObjLearningModule | $a_learning_module, | ||
int | $a_page_id, | ||
string | $a_comment = null |
||
) |
ilLearningModuleNotification constructor.
string | $a_action | |
int | $a_type | Notification type e.g. ilNotification::TYPE_LM_PAGE |
ilObjLearningModule | $a_learning_module | |
int | $a_page_id | |
string | null | $a_comment |
Definition at line 87 of file class.ilLearningModuleNotification.php.
References $DIC, comment(), getLink(), and getPageTitle().
|
protected |
Get Link to the LM page.
Definition at line 159 of file class.ilLearningModuleNotification.php.
References ilLink\_getLink().
Referenced by __construct().
|
protected |
get email/notification body
ilLanguage | $a_ulng | |
int | $a_user_id |
Definition at line 207 of file class.ilLearningModuleNotification.php.
References $link, $message, ilObjUser\_lookupFullname(), comment(), ilUserUtil\getNamePresentation(), getPreviewText(), and ilLanguage\txt().
Referenced by send().
|
protected |
get Subject of mail/notification
ilLanguage | $ulng |
Definition at line 192 of file class.ilLearningModuleNotification.php.
References $pg_title, and ilLanguage\txt().
Referenced by send().
|
protected |
Get formatted title page.
Definition at line 174 of file class.ilLearningModuleNotification.php.
References ilLMPageObject\_getPresentationTitle().
Referenced by __construct().
|
protected |
Get first 500 characters of the recently added content behavior copied from ilWikiUtil->sendNotification.
ilLanguage | $a_ulng |
Definition at line 232 of file class.ilLearningModuleNotification.php.
References ilPageObject\truncateHTML(), and ilLanguage\txt().
Referenced by getMailBody().
ilLearningModuleNotification::send | ( | ) |
Generate notifications and send them if necessary.
Definition at line 109 of file class.ilLearningModuleNotification.php.
References $message, ilLanguageFactory\_getLanguageOfUser(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, getMailBody(), getMailSubject(), ilNotification\getNotificationsForObject(), ilNotification\TYPE_LM, ilNotification\TYPE_LM_PAGE, and ilNotification\updateNotificationTime().
|
protected |
Definition at line 42 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 62 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 26 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 21 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 52 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 67 of file class.ilLearningModuleNotification.php.
Referenced by getMailBody().
|
protected |
Definition at line 72 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 36 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 31 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 57 of file class.ilLearningModuleNotification.php.
|
protected |
Definition at line 77 of file class.ilLearningModuleNotification.php.
Referenced by getMailSubject().
|
protected |
Definition at line 47 of file class.ilLearningModuleNotification.php.
const ilLearningModuleNotification::ACTION_COMMENT = "comment" |
Definition at line 16 of file class.ilLearningModuleNotification.php.
Referenced by ilLMPresentationGUI\observeNoteAction().
const ilLearningModuleNotification::ACTION_UPDATE = "update" |
Definition at line 17 of file class.ilLearningModuleNotification.php.
Referenced by ilLMPage\afterUpdate().