ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilExcCronFeedbackNotification Class Reference

Cron for exercise feedback notification. More...

+ Inheritance diagram for ilExcCronFeedbackNotification:
+ Collaboration diagram for ilExcCronFeedbackNotification:

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.
- 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.
 addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active)
 Add external settings to form.
 activationWasToggled ($a_currently_active)
 Cron job status was changed.

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
- Protected Member Functions inherited from ilCronJob
 checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value)

Detailed Description

Cron for exercise feedback notification.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 13 of file class.ilExcCronFeedbackNotification.php.

Member Function Documentation

ilExcCronFeedbackNotification::getDefaultScheduleType ( )

Get schedule type.

Returns
int

Reimplemented from ilCronJob.

Definition at line 36 of file class.ilExcCronFeedbackNotification.php.

References ilCronJob\SCHEDULE_TYPE_DAILY.

ilExcCronFeedbackNotification::getDefaultScheduleValue ( )

Get schedule value.

Returns
int|array

Reimplemented from ilCronJob.

Definition at line 41 of file class.ilExcCronFeedbackNotification.php.

{
return;
}
ilExcCronFeedbackNotification::getDescription ( )

Get description.

Returns
string

Reimplemented from ilCronJob.

Definition at line 28 of file class.ilExcCronFeedbackNotification.php.

References $lng.

{
global $lng;
$lng->loadLanguageModule("exc");
return $lng->txt("exc_global_feedback_file_cron_info");
}
ilExcCronFeedbackNotification::getId ( )

Get id.

Returns
string

Reimplemented from ilCronJob.

Definition at line 15 of file class.ilExcCronFeedbackNotification.php.

{
return "exc_feedback_notification";
}
ilExcCronFeedbackNotification::getTitle ( )

Get title.

Returns
string

Reimplemented from ilCronJob.

Definition at line 20 of file class.ilExcCronFeedbackNotification.php.

References $lng.

{
global $lng;
$lng->loadLanguageModule("exc");
return $lng->txt("exc_global_feedback_file_cron");
}
ilExcCronFeedbackNotification::hasAutoActivation ( )

Is to be activated on "installation".

Returns
boolean

Reimplemented from ilCronJob.

Definition at line 46 of file class.ilExcCronFeedbackNotification.php.

{
return true;
}
ilExcCronFeedbackNotification::hasFlexibleSchedule ( )

Can the schedule be configured?

Returns
boolean

Reimplemented from ilCronJob.

Definition at line 51 of file class.ilExcCronFeedbackNotification.php.

{
return false;
}
ilExcCronFeedbackNotification::run ( )

Run job.

Returns
ilCronJobResult

Reimplemented from ilCronJob.

Definition at line 56 of file class.ilExcCronFeedbackNotification.php.

References $result, ilExAssignment\getPendingFeedbackNotifications(), ilExAssignment\sendFeedbackNotifications(), ilCronJobResult\STATUS_NO_ACTION, and ilCronJobResult\STATUS_OK.

{
$message = array();
$count = 0;
include_once "Modules/Exercise/classes/class.ilExAssignment.php";
{
{
$count++;
}
}
if($count)
{
}
$result->setStatus($status);
return $result;
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: