ILIAS
Release_5_0_x_branch Revision 61816
|
Course/group notifications. More...
Public Member Functions | |
getId () | |
Get id. | |
getTitle () | |
Get title. | |
getDescription () | |
Get description. | |
getDefaultScheduleType () | |
Get schedule type. | |
getDefaultScheduleValue () | |
Get schedule value. | |
hasAutoActivation () | |
Is to be activated on "installation". | |
hasFlexibleSchedule () | |
Can the schedule be configured? | |
run () | |
Run job. | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
Add external settings to form. | |
activationWasToggled ($a_currently_active) | |
Cron job status was changed. | |
Public Member Functions inherited from ilCronJob | |
isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false) | |
Is job currently active? | |
getScheduleType () | |
Get current schedule type (if flexible) | |
getScheduleValue () | |
Get current schedule value (if flexible) | |
setSchedule ($a_type, $a_value) | |
Update current schedule (if flexible) | |
getValidScheduleTypes () | |
Get all available schedule types. | |
isManuallyExecutable () | |
Defines whether or not a cron job can be started manually. | |
hasCustomSettings () | |
Has cron job any custom setting which can be edited? | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
Add custom settings to form. | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
Save custom settings. |
Protected Member Functions | |
sendMail ($a_user_id, $a_ref_id, array $news) | |
Send news mail for 1 object and 1 user. | |
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 | ) |
Cron job status was changed.
bool | $a_currently_active |
Reimplemented from ilCronJob.
Definition at line 250 of file class.ilMembershipCronNotifications.php.
References $ilSetting.
ilMembershipCronNotifications::addToExternalSettingsForm | ( | $a_form_id, | |
array & | $a_fields, | ||
$a_is_active | |||
) |
Add external settings to form.
int | $a_form_id | |
array | $a_fields | |
bool | $a_is_active |
Reimplemented from ilCronJob.
Definition at line 235 of file class.ilMembershipCronNotifications.php.
References $lng, ilAdministrationSettingsFormHandler\FORM_COURSE, and ilAdministrationSettingsFormHandler\FORM_GROUP.
ilMembershipCronNotifications::getDefaultScheduleType | ( | ) |
Get schedule type.
Reimplemented from ilCronJob.
Definition at line 33 of file class.ilMembershipCronNotifications.php.
References ilCronJob\SCHEDULE_TYPE_DAILY.
ilMembershipCronNotifications::getDefaultScheduleValue | ( | ) |
Get schedule value.
Reimplemented from ilCronJob.
Definition at line 38 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::getDescription | ( | ) |
Get description.
Reimplemented from ilCronJob.
Definition at line 26 of file class.ilMembershipCronNotifications.php.
References $lng.
ilMembershipCronNotifications::getId | ( | ) |
Get id.
Reimplemented from ilCronJob.
Definition at line 14 of file class.ilMembershipCronNotifications.php.
Referenced by run().
ilMembershipCronNotifications::getTitle | ( | ) |
Get title.
Reimplemented from ilCronJob.
Definition at line 19 of file class.ilMembershipCronNotifications.php.
References $lng.
ilMembershipCronNotifications::hasAutoActivation | ( | ) |
Is to be activated on "installation".
Reimplemented from ilCronJob.
Definition at line 43 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::hasFlexibleSchedule | ( | ) |
Can the schedule be configured?
Reimplemented from ilCronJob.
Definition at line 48 of file class.ilMembershipCronNotifications.php.
ilMembershipCronNotifications::run | ( | ) |
Run job.
Reimplemented from ilCronJob.
Definition at line 53 of file class.ilMembershipCronNotifications.php.
References $ilDB, $lng, $ref_id, $result, $row, ilObject\_lookupType(), getId(), ilCronManager\ping(), sendMail(), ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.
|
protected |
Send news mail for 1 object and 1 user.
int | $a_user_id | |
int | $a_ref_id | |
array | $news |
Definition at line 150 of file class.ilMembershipCronNotifications.php.
References $ilUser, $lng, $txt, ilObjUser\_lookupLogin(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilNewsItem\determineNewsContent(), ilNewsItem\determineNewsTitle(), and ilMail\enableSOAP().
Referenced by run().