ILIAS
release_8 Revision v8.23
|
Static Public Member Functions | |
static | getConsultationHourLinksForRepositoryObject (int $ref_id, int $current_user_id, array $ctrl_class_structure) |
static | findCalendarAppointmentsForBooking (ilBookingEntry $booking, ilDateTime $start, ilDateTime $end) |
static | bookAppointment (int $a_usr_id, int $a_app_id) |
Book an appointment. More... | |
static | cancelBooking (int $a_usr_id, int $a_app_id, bool $a_send_notification=true) |
Cancel a booking. More... | |
static | lookupManagedUsers ($a_usr_id) |
Lookup managed users. More... | |
Definition at line 24 of file class.ilConsultationHourUtils.php.
|
static |
Book an appointment.
All checks (assignment possible, max booking) must be done before
int | $a_usr_id | |
int | $a_app_id |
Definition at line 135 of file class.ilConsultationHourUtils.php.
References $app, $DIC, $lng, ilLanguageFactory\_getLanguage(), ilCalendarCategoryAssignments\addAssignment(), ilBookingEntry\book(), ilCalendarUtil\initDefaultCalendarByType(), and ilCalendarCategory\TYPE_CH.
Referenced by ilConsultationHoursGUI\assignUsersToAppointment(), ilConsultationHoursGUI\assignUsersToGroup(), and ilCalendarAppointmentGUI\bookconfirmed().
|
static |
Cancel a booking.
Definition at line 170 of file class.ilConsultationHourUtils.php.
References $app, ilCalendarCategoryAssignments\_deleteByAppointmentId(), ilBookingEntry\cancelBooking(), ilConsultationHourAppointments\getAppointmentIds(), and ilCalendarCategory\TYPE_CH.
Referenced by ilConsultationHoursGUI\delete(), and ilConsultationHoursGUI\rejectBooking().
|
static |
Definition at line 98 of file class.ilConsultationHourUtils.php.
References $DIC, $query, $res, ilDBConstants\FETCHMODE_OBJECT, ilDateTime\get(), ilBookingEntry\getId(), IL_CAL_DATETIME, ILIAS\Repository\int(), ilDBConstants\T_TIMESTAMP, ilCalendarCategory\TYPE_CH, and ilTimeZone\UTC.
Referenced by ilConsultationHoursGUI\rewriteBookingIdsForAppointments().
|
static |
Definition at line 26 of file class.ilConsultationHourUtils.php.
References $DIC, ilDateTime\_before(), ilCalendarCategoryAssignments\_lookupCategories(), ilObjUser\_lookupFullname(), ilObject\_lookupObjId(), ilConsultationHourAppointments\getAppointments(), ilParticipants\getInstance(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_UNIX, and ilBookingEntry\lookupBookableUsersForObject().
Referenced by ilConsultationHoursCalendarBlockGUI\getData().
|
static |
Lookup managed users.
Definition at line 206 of file class.ilConsultationHourUtils.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilBookingEntry\lookupManagedBookingsForObject().