ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Course/group notifications. More...
Public Member Functions | |
getId () | |
getTitle () | |
getDescription () | |
getDefaultScheduleType () | |
getDefaultScheduleValue () | |
hasAutoActivation () | |
hasFlexibleSchedule () | |
run () | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
activationWasToggled ($a_currently_active) | |
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... | |
getValidScheduleTypes () | |
Get all available schedule types. 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... | |
Protected Member Functions | |
parseNewsItem ($a_parent_ref_id, array &$a_filter_map, array $a_item, $a_is_sub=false) | |
Convert news item to summary html. More... | |
filterDuplicateItems (array $a_objects) | |
Filter duplicate news items from structure. More... | |
sendMail ($a_user_id, array $a_objects, $a_last_run) | |
Send news mail for 1 user and n objects. More... | |
Protected Member Functions inherited from ilCronJob | |
checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Additional Inherited Members | |
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 |
Course/group notifications.
Definition at line 12 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::activationWasToggled | ( | $a_currently_active | ) |
ilMembershipCronNotifications::addToExternalSettingsForm | ( | $a_form_id, | |
array & | $a_fields, | ||
$a_is_active | |||
) |
Definition at line 475 of file class.ilMembershipCronNotifications.php.
References $lng, ilAdministrationSettingsFormHandler\FORM_COURSE, and ilAdministrationSettingsFormHandler\FORM_GROUP.
|
protected |
Filter duplicate news items from structure.
array | $a_objects |
Definition at line 310 of file class.ilMembershipCronNotifications.php.
Referenced by sendMail().
ilMembershipCronNotifications::getDefaultScheduleType | ( | ) |
Definition at line 33 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::getDefaultScheduleValue | ( | ) |
Definition at line 38 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::getDescription | ( | ) |
ilMembershipCronNotifications::getId | ( | ) |
Definition at line 14 of file class.ilMembershipCronNotifications.php.
Referenced by run().
ilMembershipCronNotifications::getTitle | ( | ) |
ilMembershipCronNotifications::hasAutoActivation | ( | ) |
Definition at line 43 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::hasFlexibleSchedule | ( | ) |
Definition at line 48 of file class.ilMembershipCronNotifications.php.
|
protected |
Convert news item to summary html.
int | $a_parent_ref_id | |
array | $a_filter_map | |
array | $a_item | |
bool | $a_is_sub |
Definition at line 174 of file class.ilMembershipCronNotifications.php.
References $lng, $res, $title, ilObject\_lookupTitle(), array, ilNewsItem\determineNewsContent(), ilNewsItem\determineNewsTitle(), and ilUtil\shortenText().
Referenced by sendMail().
ilMembershipCronNotifications::run | ( | ) |
Definition at line 53 of file class.ilMembershipCronNotifications.php.
References $ilDB, $lng, $log, $ref_id, $result, array, date, ilMembershipNotifications\getActiveUsersforAllObjects(), getId(), ilLoggerFactory\getLogger(), ilCronManager\ping(), sendMail(), ilDatePresentation\setUseRelativeDates(), ilCronJobResult\STATUS_NO_ACTION, ilCronJobResult\STATUS_OK, and ilDatePresentation\useRelativeDates().
|
protected |
Send news mail for 1 user and n objects.
int | $a_user_id | |
array | $a_objects | |
string | $a_last_run |
Definition at line 362 of file class.ilMembershipCronNotifications.php.
References $client, $counter, $ilUser, $lng, $path, $txt, ilLink\_getStaticLink(), ilObjUser\_lookupLogin(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), array, filterDuplicateItems(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, IL_CAL_UNIX, parseNewsItem(), and time.
Referenced by run().