ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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, string $comment='') |
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 $comment, $DIC, $lng, ilLanguageFactory\_getLanguage(), ilCalendarCategoryAssignments\addAssignment(), ilConsultationHourAppointments\getManager(), ilCalendarUtil\initDefaultCalendarByType(), ilCalendarMailNotification\TYPE_BOOKING_CONFIRMATION, ilCalendarMailNotification\TYPE_BOOKING_CONFIRMATION_MANAGER, ilCalendarCategory\TYPE_CH, and ilBookingEntry\writeBookingMessage().
Referenced by ilConsultationHoursGUI\assignUsersToAppointment(), and ilCalendarAppointmentGUI\bookconfirmed().
|
static |
Cancel a booking.
Definition at line 204 of file class.ilConsultationHourUtils.php.
References ilCalendarCategoryAssignments\_deleteByAppointmentId(), ilConsultationHourAppointments\getAppointmentIds(), and ilCalendarCategory\TYPE_CH.
Referenced by ilConsultationHoursGUI\cancelBooking(), ilCalendarAppointmentGUI\cancelConfirmed(), and ilConsultationHoursGUI\deleteAppointments().
|
static |
Definition at line 98 of file class.ilConsultationHourUtils.php.
References $DIC, $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, $user_id, ilDateTime\_before(), ilCalendarCategoryAssignments\_lookupCategories(), ilObjUser\_lookupFullname(), ilObject\_lookupObjId(), ilConsultationHourAppointments\getAppointments(), ilParticipants\getInstance(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_UNIX, ilBookingEntry\lookupBookableUsersForObject(), and null.
Referenced by ilConsultationHoursCalendarBlockGUI\getData().
|
static |
Lookup managed users.
Definition at line 242 of file class.ilConsultationHourUtils.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilBookingEntry\lookupManagedBookingsForObject().