ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilExcCronFeedbackNotification Class Reference

Cron for exercise feedback notification. More...

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

Public Member Functions

 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getDefaultScheduleType ()
 
 getDefaultScheduleValue ()
 
 hasAutoActivation ()
 
 hasFlexibleSchedule ()
 
 run ()
 
- 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...
 

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

◆ getDefaultScheduleType()

ilExcCronFeedbackNotification::getDefaultScheduleType ( )

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

37  {
38  return self::SCHEDULE_TYPE_DAILY;
39  }

◆ getDefaultScheduleValue()

ilExcCronFeedbackNotification::getDefaultScheduleValue ( )

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

42  {
43  return;
44  }

◆ getDescription()

ilExcCronFeedbackNotification::getDescription ( )

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

References $lng.

29  {
30  global $lng;
31 
32  $lng->loadLanguageModule("exc");
33  return $lng->txt("exc_global_feedback_file_cron_info");
34  }
global $lng
Definition: privfeed.php:17

◆ getId()

ilExcCronFeedbackNotification::getId ( )

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

16  {
17  return "exc_feedback_notification";
18  }

◆ getTitle()

ilExcCronFeedbackNotification::getTitle ( )

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

References $lng.

21  {
22  global $lng;
23 
24  $lng->loadLanguageModule("exc");
25  return $lng->txt("exc_global_feedback_file_cron");
26  }
global $lng
Definition: privfeed.php:17

◆ hasAutoActivation()

ilExcCronFeedbackNotification::hasAutoActivation ( )

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

47  {
48  return true;
49  }

◆ hasFlexibleSchedule()

ilExcCronFeedbackNotification::hasFlexibleSchedule ( )

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

52  {
53  return false;
54  }

◆ run()

ilExcCronFeedbackNotification::run ( )

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

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

57  {
59  $message = array();
60 
61  $count = 0;
62 
63  include_once "Modules/Exercise/classes/class.ilExAssignment.php";
65  {
67  {
68  $count++;
69  }
70  }
71 
72  if($count)
73  {
75  }
76 
77  $result = new ilCronJobResult();
78  $result->setStatus($status);
79 
80  return $result;
81  }
static sendFeedbackNotifications($a_ass_id, $a_user_id=null)
$result
static getPendingFeedbackNotifications()
Create styles array
The data for the language used.
Cron job result data container.
+ Here is the call graph for this function:

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