ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Forum notifications. More...
Public Member Functions | |
__construct (\ilDBInterface $database=null, \ilForumNotificationCache $notificationCache=null) | |
getId () | |
getTitle () | |
getDescription () | |
getDefaultScheduleType () | |
getDefaultScheduleValue () | |
hasAutoActivation () | |
hasFlexibleSchedule () | |
hasCustomSettings () | |
keepAlive () | |
run () | |
sendCronForumNotification ($res, $notification_type) | |
existsProviderObject ($post_id) | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
activationWasToggled ($a_currently_active) | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
Public Member Functions inherited from ilCronJob | |
isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false) | |
Is job currently active? More... | |
getScheduleType () | |
Get current schedule type (if flexible) More... | |
getScheduleValue () | |
Get current schedule value (if flexible) More... | |
setSchedule ($a_type, $a_value) | |
Update current schedule (if flexible) More... | |
getAllScheduleTypes () | |
Get all available schedule types. More... | |
getScheduleTypesWithValues () | |
getValidScheduleTypes () | |
Returns a collection of all valid schedule types for a specific job. More... | |
getTitle () | |
Get title. More... | |
getDescription () | |
Get description. More... | |
isManuallyExecutable () | |
Defines whether or not a cron job can be started manually. More... | |
hasCustomSettings () | |
Has cron job any custom setting which can be edited? More... | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
Add custom settings to form. More... | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
Save custom settings. More... | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
Add external settings to form. More... | |
activationWasToggled ($a_currently_active) | |
Cron job status was changed. More... | |
getId () | |
Get id. More... | |
hasAutoActivation () | |
Is to be activated on "installation". More... | |
hasFlexibleSchedule () | |
Can the schedule be configured? More... | |
getDefaultScheduleType () | |
Get schedule type. More... | |
getDefaultScheduleValue () | |
Get schedule value. More... | |
run () | |
Run job. More... | |
Data Fields | |
const | KEEP_ALIVE_CHUNK_SIZE = 25 |
Data Fields inherited from ilCronJob | |
const | SCHEDULE_TYPE_DAILY = 1 |
const | SCHEDULE_TYPE_IN_MINUTES = 2 |
const | SCHEDULE_TYPE_IN_HOURS = 3 |
const | SCHEDULE_TYPE_IN_DAYS = 4 |
const | SCHEDULE_TYPE_WEEKLY = 5 |
const | SCHEDULE_TYPE_MONTHLY = 6 |
const | SCHEDULE_TYPE_QUARTERLY = 7 |
const | SCHEDULE_TYPE_YEARLY = 8 |
Static Public Attributes | |
static | $providerObject = array() |
Protected Member Functions | |
getRefIdsByObjId ($a_obj_id) | |
getFirstAccessibleRefIdBUserAndObjId ($a_user_id, $a_obj_id) | |
Protected Member Functions inherited from ilCronJob | |
checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Protected Attributes | |
$settings | |
$logger | |
$num_sent_messages = 0 | |
Static Protected Attributes | |
static | $deleted_ids_cache = array() |
static | $ref_ids_by_obj_id = array() |
static | $accessible_ref_ids_by_user = array() |
Private Member Functions | |
addProviderObject ($row) | |
resetProviderCache () | |
sendNotificationForNewPosts (string $threshold_date) | |
sendNotificationForUpdatedPosts (string $threshold_date) | |
sendNotificationForCensoredPosts (string $threshold_date) | |
sendNotificationForUncensoredPosts (string $threshold_date) | |
sendNotificationForDeletedThreads () | |
sendNotifcationForDeletedPosts () | |
sendNotification (\ilPDOStatement $res, string $actionName, int $notificationType) | |
sendDeleteNotifcations (\ilPDOStatement $res, string $action, string $actionDescription, int $notificationType) | |
createForumPostSql ($condition) | |
createSelectOfDeletionNotificationsSql () | |
Private Attributes | |
$ilDB | |
$notificationCache | |
Forum notifications.
Definition at line 10 of file class.ilForumCronNotification.php.
ilForumCronNotification::__construct | ( | \ilDBInterface | $database = null , |
\ilForumNotificationCache | $notificationCache = null |
||
) |
ilDBInterface | null | $database | |
ilForumNotificationCache | null | $notificationCache |
Definition at line 59 of file class.ilForumCronNotification.php.
References $DIC, $ilDB, $notificationCache, and settings().
ilForumCronNotification::activationWasToggled | ( | $a_currently_active | ) |
bool | $a_currently_active |
Definition at line 371 of file class.ilForumCronNotification.php.
References $DIC.
ilForumCronNotification::addCustomSettingsToForm | ( | ilPropertyFormGUI | $a_form | ) |
ilPropertyFormGUI | $a_form |
Definition at line 386 of file class.ilForumCronNotification.php.
References $DIC, $lng, ilPropertyFormGUI\addItem(), ilNumberInputGUI\setSize(), and settings().
|
private |
$row |
Definition at line 333 of file class.ilForumCronNotification.php.
References $row.
Referenced by sendCronForumNotification().
ilForumCronNotification::addToExternalSettingsForm | ( | $a_form_id, | |
array & | $a_fields, | ||
$a_is_active | |||
) |
int | $a_form_id | |
array | $a_fields | |
bool | $a_is_active |
Definition at line 354 of file class.ilForumCronNotification.php.
References $DIC, $lng, and ilAdministrationSettingsFormHandler\FORM_FORUM.
|
private |
$condition |
Definition at line 588 of file class.ilForumCronNotification.php.
Referenced by sendNotificationForCensoredPosts(), sendNotificationForNewPosts(), sendNotificationForUncensoredPosts(), and sendNotificationForUpdatedPosts().
|
private |
Definition at line 610 of file class.ilForumCronNotification.php.
Referenced by sendNotifcationForDeletedPosts(), and sendNotificationForDeletedThreads().
ilForumCronNotification::existsProviderObject | ( | $post_id | ) |
$post_id |
Definition at line 322 of file class.ilForumCronNotification.php.
Referenced by sendCronForumNotification().
ilForumCronNotification::getDefaultScheduleType | ( | ) |
Definition at line 94 of file class.ilForumCronNotification.php.
ilForumCronNotification::getDefaultScheduleValue | ( | ) |
Definition at line 99 of file class.ilForumCronNotification.php.
ilForumCronNotification::getDescription | ( | ) |
|
protected |
int | $a_user_id | |
int | $a_obj_id |
Definition at line 214 of file class.ilForumCronNotification.php.
References $DIC, and getRefIdsByObjId().
Referenced by sendCronForumNotification().
ilForumCronNotification::getId | ( | ) |
Definition at line 75 of file class.ilForumCronNotification.php.
Referenced by keepAlive().
|
protected |
int | $a_obj_id |
Definition at line 200 of file class.ilForumCronNotification.php.
References ilObject\_getAllReferences().
Referenced by getFirstAccessibleRefIdBUserAndObjId().
ilForumCronNotification::getTitle | ( | ) |
ilForumCronNotification::hasAutoActivation | ( | ) |
Definition at line 104 of file class.ilForumCronNotification.php.
ilForumCronNotification::hasCustomSettings | ( | ) |
Definition at line 117 of file class.ilForumCronNotification.php.
ilForumCronNotification::hasFlexibleSchedule | ( | ) |
Definition at line 109 of file class.ilForumCronNotification.php.
ilForumCronNotification::keepAlive | ( | ) |
Definition at line 125 of file class.ilForumCronNotification.php.
References getId(), and ilCronManager\ping().
Referenced by sendCronForumNotification(), sendDeleteNotifcations(), and sendNotification().
|
private |
Definition at line 344 of file class.ilForumCronNotification.php.
Referenced by sendCronForumNotification().
ilForumCronNotification::run | ( | ) |
Definition at line 135 of file class.ilForumCronNotification.php.
References $DIC, $ilSetting, $lng, $result, sendNotifcationForDeletedPosts(), sendNotificationForCensoredPosts(), sendNotificationForDeletedThreads(), sendNotificationForNewPosts(), sendNotificationForUncensoredPosts(), sendNotificationForUpdatedPosts(), settings(), ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.
ilForumCronNotification::saveCustomSettings | ( | ilPropertyFormGUI | $a_form | ) |
ilPropertyFormGUI | $a_form |
Definition at line 409 of file class.ilForumCronNotification.php.
References ilPropertyFormGUI\getInput(), and settings().
ilForumCronNotification::sendCronForumNotification | ( | $res, | |
$notification_type | |||
) |
$res | |
$notification_type |
Definition at line 241 of file class.ilForumCronNotification.php.
References $DIC, $i, $ilDB, PHPMailer\PHPMailer\$provider, $res, $row, addProviderObject(), existsProviderObject(), getFirstAccessibleRefIdBUserAndObjId(), keepAlive(), ilForumAuthorInformationCache\preloadUserObjects(), resetProviderCache(), ilForumMailNotification\TYPE_POST_DELETED, and ilForumMailNotification\TYPE_THREAD_DELETED.
Referenced by sendDeleteNotifcations(), and sendNotification().
|
private |
$res | |
$action | |
$actionDescription | |
$notificationType |
Definition at line 568 of file class.ilForumCronNotification.php.
References keepAlive(), and sendCronForumNotification().
Referenced by sendNotifcationForDeletedPosts(), and sendNotificationForDeletedThreads().
|
private |
Definition at line 529 of file class.ilForumCronNotification.php.
References $res, createSelectOfDeletionNotificationsSql(), sendDeleteNotifcations(), and ilForumMailNotification\TYPE_POST_DELETED.
Referenced by run().
|
private |
$res | |
$actionName | |
$notificationType |
Definition at line 550 of file class.ilForumCronNotification.php.
References keepAlive(), and sendCronForumNotification().
Referenced by sendNotificationForCensoredPosts(), sendNotificationForNewPosts(), sendNotificationForUncensoredPosts(), and sendNotificationForUpdatedPosts().
|
private |
$threshold_date |
Definition at line 468 of file class.ilForumCronNotification.php.
References $res, $values, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_CENSORED.
Referenced by run().
|
private |
Definition at line 513 of file class.ilForumCronNotification.php.
References $res, createSelectOfDeletionNotificationsSql(), sendDeleteNotifcations(), and ilForumMailNotification\TYPE_THREAD_DELETED.
Referenced by run().
|
private |
$threshold_date |
Definition at line 418 of file class.ilForumCronNotification.php.
References $res, $values, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_NEW.
Referenced by run().
|
private |
$threshold_date |
Definition at line 492 of file class.ilForumCronNotification.php.
References $res, $values, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_UNCENSORED.
Referenced by run().
|
private |
$threshold_date |
Definition at line 444 of file class.ilForumCronNotification.php.
References $res, $values, createForumPostSql(), sendNotification(), and ilForumMailNotification\TYPE_POST_UPDATED.
Referenced by run().
|
staticprotected |
Definition at line 42 of file class.ilForumCronNotification.php.
|
staticprotected |
Definition at line 32 of file class.ilForumCronNotification.php.
|
private |
Definition at line 50 of file class.ilForumCronNotification.php.
Referenced by __construct(), and sendCronForumNotification().
|
protected |
Definition at line 22 of file class.ilForumCronNotification.php.
|
private |
Definition at line 53 of file class.ilForumCronNotification.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.ilForumCronNotification.php.
|
static |
Definition at line 27 of file class.ilForumCronNotification.php.
|
staticprotected |
Definition at line 37 of file class.ilForumCronNotification.php.
|
protected |
Definition at line 17 of file class.ilForumCronNotification.php.
const ilForumCronNotification::KEEP_ALIVE_CHUNK_SIZE = 25 |
Definition at line 12 of file class.ilForumCronNotification.php.