ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilExcCronFeedbackNotification Class Reference

Cron for exercise feedback notification. More...

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

Public Member Functions

 __construct ()
 Constructor. More...
 
 getId ()
 Get id. More...
 
 getTitle ()
 Get title. More...
 
 getDescription ()
 Get description. More...
 
 getDefaultScheduleType ()
 Get schedule type. More...
 
 getDefaultScheduleValue ()
 Get schedule value. More...
 
 hasAutoActivation ()
 Is to be activated on "installation". More...
 
 hasFlexibleSchedule ()
 Can the schedule be configured? More...
 
 run ()
 Run job. More...
 
- 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 Attributes

 $lng
 

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.

Constructor & Destructor Documentation

◆ __construct()

ilExcCronFeedbackNotification::__construct ( )

Constructor.

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

25 {
26 global $DIC;
27
28 $this->lng = $DIC->language();
29 }
global $DIC
Definition: saml.php:7

References $DIC.

Member Function Documentation

◆ getDefaultScheduleType()

ilExcCronFeedbackNotification::getDefaultScheduleType ( )

Get schedule type.

Returns
int

Reimplemented from ilCronJob.

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

53 {
55 }
const SCHEDULE_TYPE_DAILY

References ilCronJob\SCHEDULE_TYPE_DAILY.

◆ getDefaultScheduleValue()

ilExcCronFeedbackNotification::getDefaultScheduleValue ( )

Get schedule value.

Returns
int|array

Reimplemented from ilCronJob.

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

58 {
59 return;
60 }

◆ getDescription()

ilExcCronFeedbackNotification::getDescription ( )

Get description.

Returns
string

Reimplemented from ilCronJob.

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

45 {
47
48 $lng->loadLanguageModule("exc");
49 return $lng->txt("exc_global_feedback_file_cron_info");
50 }

References $lng.

◆ getId()

ilExcCronFeedbackNotification::getId ( )

Get id.

Returns
string

Reimplemented from ilCronJob.

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

32 {
33 return "exc_feedback_notification";
34 }

◆ getTitle()

ilExcCronFeedbackNotification::getTitle ( )

Get title.

Returns
string

Reimplemented from ilCronJob.

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

37 {
39
40 $lng->loadLanguageModule("exc");
41 return $lng->txt("exc_global_feedback_file_cron");
42 }

References $lng.

◆ hasAutoActivation()

ilExcCronFeedbackNotification::hasAutoActivation ( )

Is to be activated on "installation".

Returns
boolean

Reimplemented from ilCronJob.

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

63 {
64 return true;
65 }

◆ hasFlexibleSchedule()

ilExcCronFeedbackNotification::hasFlexibleSchedule ( )

Can the schedule be configured?

Returns
boolean

Reimplemented from ilCronJob.

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

68 {
69 return false;
70 }

◆ run()

ilExcCronFeedbackNotification::run ( )

Run job.

Returns
ilCronJobResult

Reimplemented from ilCronJob.

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

73 {
75 $message = array();
76
77 $count = 0;
78
79 include_once "Modules/Exercise/classes/class.ilExAssignment.php";
82 $count++;
83 }
84 }
85
86 if ($count) {
88 }
89
91 $result->setStatus($status);
92
93 return $result;
94 }
$result
Cron job result data container.
static getPendingFeedbackNotifications()
static sendFeedbackNotifications($a_ass_id, $a_user_id=null)
catch(Exception $e) $message

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

+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilExcCronFeedbackNotification::$lng
protected

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

Referenced by getDescription(), and getTitle().


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