ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilCalendarRecurrences Class Reference
+ Collaboration diagram for ilCalendarRecurrences:

Static Public Member Functions

static _getRecurrences (int $a_cal_id)
 get all recurrences of an appointment More...
 
static _getFirstRecurrence ($a_cal_id)
 

Detailed Description

Member Function Documentation

◆ _getFirstRecurrence()

static ilCalendarRecurrences::_getFirstRecurrence (   $a_cal_id)
static

Definition at line 50 of file class.ilCalendarRecurrences.php.

Referenced by ilCalendarAppointmentGUI\initAppointment(), ilCalendarRecurrenceTableGUI\parse(), ilCalendarChangedAppointmentsTableGUI\setAppointments(), and ilCalendarAppointmentsTableGUI\setAppointments().

51  {
52  $recs = self::_getRecurrences($a_cal_id);
53  if (count($recs)) {
54  return $recs[0];
55  }
56  $new_rec = new ilCalendarRecurrence();
57  $new_rec->setEntryId($a_cal_id);
58  return $new_rec;
59  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ _getRecurrences()

static ilCalendarRecurrences::_getRecurrences ( int  $a_cal_id)
static

get all recurrences of an appointment

Definition at line 35 of file class.ilCalendarRecurrences.php.

References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.

Referenced by ilCalendarAppointmentGUI\askDelete(), ilCalendarAppointmentGUI\askEdit(), ilCalendarSchedule\calculate(), ilCalendarExport\createRecurrences(), and ilCalendarExport\isRepeatingAppointment().

35  : array
36  {
37  global $DIC;
38 
39  $ilDB = $DIC['ilDB'];
40  $query = "SELECT rule_id FROM cal_recurrence_rules " .
41  "WHERE cal_id = " . $ilDB->quote($a_cal_id, 'integer') . " ";
42  $res = $ilDB->query($query);
43  $recurrences = [];
44  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
45  $recurrences[] = new ilCalendarRecurrence((int) $row->rule_id);
46  }
47  return $recurrences;
48  }
$res
Definition: ltiservices.php:69
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:25
+ Here is the caller graph for this function:

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