ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Description of class. More...
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 ($a_usr_id, $a_app_id) |
Book an appointment. More... | |
static | cancelBooking ($a_usr_id, $a_app_id, $a_send_notification=true) |
Cancel a booking. More... | |
static | lookupManagedUsers ($a_usr_id) |
Lookup managed users. More... | |
Description of class.
Definition at line 10 of file class.ilConsultationHourUtils.php.
|
static |
Book an appointment.
All checks (assignment possible, max booking) must be done before
type | $a_usr_id | |
type | $a_app_id |
Definition at line 108 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.
type | $a_usr_id | |
type | $a_app_id |
Definition at line 152 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 |
ilBookingEntry | $booking | |
ilDateTime | $start | |
ilDateTime | $end |
ilDatabaseException |
Definition at line 79 of file class.ilConsultationHourUtils.php.
References $DIC, $query, $res, ilDBConstants\FETCHMODE_OBJECT, ilDateTime\get(), ilBookingEntry\getId(), IL_CAL_DATETIME, ilDBConstants\T_TIMESTAMP, ilCalendarCategory\TYPE_CH, and ilTimeZone\UTC.
Referenced by ilConsultationHoursGUI\rewriteBookingIdsForAppointments().
|
static |
Definition at line 12 of file class.ilConsultationHourUtils.php.
References $DIC, $lng, 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.
type | $a_usr_id |
Definition at line 191 of file class.ilConsultationHourUtils.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilBookingEntry\lookupManagedBookingsForObject().