ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilExcCronFeedbackNotification Class Reference

Cron for exercise feedback notification. More...

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

Public Member Functions

 __construct ()
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getDefaultScheduleType ()
 
 getDefaultScheduleValue ()
 
 hasAutoActivation ()
 
 hasFlexibleSchedule ()
 
 run ()
 
- Public Member Functions inherited from ilCronJob
 setDateTimeProvider (?Closure $date_time_provider)
 
 isDue (?DateTimeImmutable $last_run, ?CronJobScheduleType $schedule_type, ?int $schedule_value, bool $is_manually_executed=false)
 
 getScheduleType ()
 Get current schedule type (if flexible) More...
 
 getScheduleValue ()
 Get current schedule value (if flexible) More...
 
 setSchedule (?CronJobScheduleType $a_type, ?int $a_value)
 Update current schedule (if flexible) More...
 
 getAllScheduleTypes ()
 Get all available schedule types. More...
 
 getScheduleTypesWithValues ()
 
 getValidScheduleTypes ()
 Returns a collection of all valid schedule types for a specific job. More...
 
 isManuallyExecutable ()
 
 hasCustomSettings ()
 
 addCustomSettingsToForm (ilPropertyFormGUI $a_form)
 
 saveCustomSettings (ilPropertyFormGUI $a_form)
 
 addToExternalSettingsForm (int $a_form_id, array &$a_fields, bool $a_is_active)
 
 activationWasToggled (ilDBInterface $db, ilSetting $setting, bool $a_currently_active)
 Important: This method is (also) called from the setup process, where the constructor of an ilCronJob ist NOT executed. More...
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 hasAutoActivation ()
 Is to be activated on "installation", does only work for ILIAS core cron jobs. More...
 
 hasFlexibleSchedule ()
 
 getDefaultScheduleType ()
 
 getDefaultScheduleValue ()
 
 run ()
 

Protected Attributes

ilLanguage $lng
 
- Protected Attributes inherited from ilCronJob
CronJobScheduleType $schedule_type = null
 
int $schedule_value = null
 
Closure $date_time_provider = null
 

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
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilExcCronFeedbackNotification::__construct ( )

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

References $DIC, and ILIAS\Repository\lng().

33  {
34  global $DIC;
35 
36  $this->lng = $DIC->language();
37  }
global $DIC
Definition: shib_login.php:25
+ Here is the call graph for this function:

Member Function Documentation

◆ getDefaultScheduleType()

ilExcCronFeedbackNotification::getDefaultScheduleType ( )

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

61  {
62  return CronJobScheduleType::SCHEDULE_TYPE_DAILY;
63  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getDefaultScheduleValue()

ilExcCronFeedbackNotification::getDefaultScheduleValue ( )

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

65  : ?int
66  {
67  return null;
68  }

◆ getDescription()

ilExcCronFeedbackNotification::getDescription ( )

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

References $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

52  : string
53  {
54  $lng = $this->lng;
55 
56  $lng->loadLanguageModule("exc");
57  return $lng->txt("exc_global_feedback_file_cron_info");
58  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
loadLanguageModule(string $a_module)
Load language module.
+ Here is the call graph for this function:

◆ getId()

ilExcCronFeedbackNotification::getId ( )

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

39  : string
40  {
41  return "exc_feedback_notification";
42  }

◆ getTitle()

ilExcCronFeedbackNotification::getTitle ( )

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

References $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

44  : string
45  {
46  $lng = $this->lng;
47 
48  $lng->loadLanguageModule("exc");
49  return $lng->txt("exc_global_feedback_file_cron");
50  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
loadLanguageModule(string $a_module)
Load language module.
+ Here is the call graph for this function:

◆ hasAutoActivation()

ilExcCronFeedbackNotification::hasAutoActivation ( )

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

70  : bool
71  {
72  return true;
73  }

◆ hasFlexibleSchedule()

ilExcCronFeedbackNotification::hasFlexibleSchedule ( )

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

75  : bool
76  {
77  return false;
78  }

◆ run()

ilExcCronFeedbackNotification::run ( )
Exceptions
ilExcUnknownAssignmentTypeException

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

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

84  {
86 
87  $count = 0;
88 
91  $count++;
92  }
93  }
94 
95  if ($count !== 0) {
97  }
98 
99  $result = new ilCronJobResult();
100  $result->setStatus($status);
101 
102  return $result;
103  }
static getPendingFeedbackNotifications()
final const STATUS_NO_ACTION
static sendFeedbackNotifications(int $a_ass_id, int $a_user_id=null)
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilLanguage ilExcCronFeedbackNotification::$lng
protected

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

Referenced by getDescription(), and getTitle().


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