ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ILIAS\Cron\CronJob
 setDateTimeProvider (?\Closure $date_time_provider)
 
 isDue (?\DateTimeImmutable $last_run, ?JobScheduleType $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 (?JobScheduleType $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 ()
 
 usesLegacyForms ()
 
 getCustomConfigurationInput (\ILIAS\UI\Factory $ui_factory, \ILIAS\Refinery\Factory $factory, \ilLanguage $lng)
 
 addCustomSettingsToForm (\ilPropertyFormGUI $a_form)
 
 saveCustomConfiguration (mixed $form_data)
 
 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 ILIAS\Cron\CronJob
JobScheduleType $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 29 of file class.ilExcCronFeedbackNotification.php.

Constructor & Destructor Documentation

◆ __construct()

ilExcCronFeedbackNotification::__construct ( )

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

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

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

Member Function Documentation

◆ getDefaultScheduleType()

ilExcCronFeedbackNotification::getDefaultScheduleType ( )

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

63  {
64  return JobScheduleType::DAILY;
65  }

◆ getDefaultScheduleValue()

ilExcCronFeedbackNotification::getDefaultScheduleValue ( )

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

References null.

67  : ?int
68  {
69  return null;
70  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getDescription()

ilExcCronFeedbackNotification::getDescription ( )

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

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

54  : string
55  {
56  $lng = $this->lng;
57 
58  $lng->loadLanguageModule("exc");
59  return $lng->txt("exc_global_feedback_file_cron_info");
60  }
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 41 of file class.ilExcCronFeedbackNotification.php.

41  : string
42  {
43  return "exc_feedback_notification";
44  }

◆ getTitle()

ilExcCronFeedbackNotification::getTitle ( )

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

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

46  : string
47  {
48  $lng = $this->lng;
49 
50  $lng->loadLanguageModule("exc");
51  return $lng->txt("exc_global_feedback_file_cron");
52  }
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 72 of file class.ilExcCronFeedbackNotification.php.

72  : bool
73  {
74  return true;
75  }

◆ hasFlexibleSchedule()

ilExcCronFeedbackNotification::hasFlexibleSchedule ( )

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

77  : bool
78  {
79  return false;
80  }

◆ run()

ilExcCronFeedbackNotification::run ( )
Exceptions
ilExcUnknownAssignmentTypeException

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

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

85  : JobResult
86  {
87  $status = JobResult::STATUS_NO_ACTION;
88 
89  $count = 0;
90 
93  $count++;
94  }
95  }
96 
97  if ($count !== 0) {
98  $status = JobResult::STATUS_OK;
99  }
100 
101  $result = new JobResult();
102  $result->setStatus($status);
103 
104  return $result;
105  }
static getPendingFeedbackNotifications()
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 31 of file class.ilExcCronFeedbackNotification.php.

Referenced by getDescription(), and getTitle().


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