ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 Is to be activated on "installation", does only work for ILIAS core cron jobs. More...
 
 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.

35 {
36 global $DIC;
37
38 $this->lng = $DIC->language();
39 }
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getDefaultScheduleType()

ilExcCronFeedbackNotification::getDefaultScheduleType ( )

Reimplemented from ILIAS\Cron\CronJob.

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

63 {
64 return JobScheduleType::DAILY;
65 }

◆ getDefaultScheduleValue()

ilExcCronFeedbackNotification::getDefaultScheduleValue ( )

Reimplemented from ILIAS\Cron\CronJob.

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

67 : ?int
68 {
69 return null;
70 }

◆ getDescription()

ilExcCronFeedbackNotification::getDescription ( )

Reimplemented from ILIAS\Cron\CronJob.

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

54 : string
55 {
57
59 return $lng->txt("exc_global_feedback_file_cron_info");
60 }
loadLanguageModule(string $a_module)
Load language module.
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...

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

+ Here is the call graph for this function:

◆ getId()

ilExcCronFeedbackNotification::getId ( )

Reimplemented from ILIAS\Cron\CronJob.

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

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

◆ getTitle()

ilExcCronFeedbackNotification::getTitle ( )

Reimplemented from ILIAS\Cron\CronJob.

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

46 : string
47 {
49
51 return $lng->txt("exc_global_feedback_file_cron");
52 }

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

+ Here is the call graph for this function:

◆ hasAutoActivation()

ilExcCronFeedbackNotification::hasAutoActivation ( )

Is to be activated on "installation", does only work for ILIAS core cron jobs.

Reimplemented from ILIAS\Cron\CronJob.

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

72 : bool
73 {
74 return true;
75 }

◆ hasFlexibleSchedule()

ilExcCronFeedbackNotification::hasFlexibleSchedule ( )

Reimplemented from ILIAS\Cron\CronJob.

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

77 : bool
78 {
79 return false;
80 }

◆ run()

ilExcCronFeedbackNotification::run ( )
Exceptions
ilExcUnknownAssignmentTypeException

Reimplemented from ILIAS\Cron\CronJob.

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

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)

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

+ 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: