ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilExcCronFeedbackNotification.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once "Services/Cron/classes/class.ilCronJob.php";
6
14{
18 protected $lng;
19
20
24 public function __construct()
25 {
26 global $DIC;
27
28 $this->lng = $DIC->language();
29 }
30
31 public function getId()
32 {
33 return "exc_feedback_notification";
34 }
35
36 public function getTitle()
37 {
39
40 $lng->loadLanguageModule("exc");
41 return $lng->txt("exc_global_feedback_file_cron");
42 }
43
44 public function getDescription()
45 {
47
48 $lng->loadLanguageModule("exc");
49 return $lng->txt("exc_global_feedback_file_cron_info");
50 }
51
52 public function getDefaultScheduleType()
53 {
55 }
56
57 public function getDefaultScheduleValue()
58 {
59 return;
60 }
61
62 public function hasAutoActivation()
63 {
64 return true;
65 }
66
67 public function hasFlexibleSchedule()
68 {
69 return false;
70 }
71
72 public function run()
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 }
95}
$result
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_DAILY
static getPendingFeedbackNotifications()
static sendFeedbackNotifications($a_ass_id, $a_user_id=null)
Cron for exercise feedback notification.
hasFlexibleSchedule()
Can the schedule be configured?
hasAutoActivation()
Is to be activated on "installation".
catch(Exception $e) $message
global $DIC
Definition: saml.php:7