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 
5 include_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  {
38  $lng = $this->lng;
39 
40  $lng->loadLanguageModule("exc");
41  return $lng->txt("exc_global_feedback_file_cron");
42  }
43 
44  public function getDescription()
45  {
46  $lng = $this->lng;
47 
48  $lng->loadLanguageModule("exc");
49  return $lng->txt("exc_global_feedback_file_cron_info");
50  }
51 
52  public function getDefaultScheduleType()
53  {
54  return self::SCHEDULE_TYPE_DAILY;
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 
90  $result = new ilCronJobResult();
91  $result->setStatus($status);
92 
93  return $result;
94  }
95 }
static sendFeedbackNotifications($a_ass_id, $a_user_id=null)
$result
global $DIC
Definition: saml.php:7
static getPendingFeedbackNotifications()
Cron job application base class.
Cron for exercise feedback notification.
catch(Exception $e) $message
Create styles array
The data for the language used.
Cron job result data container.