|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilBookingEntry:Public Member Functions | |
| __construct (int $a_booking_id=0) | |
| Constructor. More... | |
| getId () | |
| setObjId (int $a_id) | |
| getObjId () | |
| setDeadlineHours (int $a_hours) | |
| getDeadlineHours () | |
| setNumberOfBookings (int $a_num) | |
| getNumberOfBookings () | |
| setTargetObjIds (?array $a_obj_id) | |
| getTargetObjIds () | |
| isTargetObjectVisible (int $a_ref_id) | |
| Check if target ref id is visible. More... | |
| save () | |
| update () | |
| delete () | |
| isOwner (?int $a_user_id=null) | |
| check if current (or given) user is entry owner More... | |
| getCurrentNumberOfBookings (int $a_entry_id) | |
| get current number of bookings More... | |
| getCurrentBookings (int $a_entry_id) | |
| get current bookings More... | |
| hasBooked (int $a_entry_id, ?int $a_user_id=null) | |
| get current number of bookings More... | |
| isBookedOut (int $a_entry_id, bool $a_check_current_user=false) | |
| get current number of bookings More... | |
| isAppointmentBookableForUser (int $a_app_id, int $a_user_id) | |
| Check if a calendar appointment is bookable for a specific user. More... | |
| book (int $a_entry_id, ?int $a_user_id=null) | |
| book calendar entry for user More... | |
| cancelBooking (int $a_entry_id, ?int $a_user_id=null) | |
| cancel calendar booking for user More... | |
| deleteBooking (int $a_entry_id, int $a_user_id) | |
| Delete booking. More... | |
Static Public Member Functions | |
| static | lookupBookingsOfUser (array $a_app_ids, int $a_usr_id, ?ilDateTime $start=null) |
| Lookup bookings of user. More... | |
| static | removeObsoleteEntries () |
| Remove unused booking entries. More... | |
| static | getInstanceByCalendarEntryId (int $a_id) |
| Get instance by calendar entry. More... | |
| static | isBookable (array $a_obj_ids, ?int $a_target_obj_id=null) |
| Which objects are bookable? More... | |
| static | lookupBookableUsersForObject (array $a_obj_id, array $a_user_ids) |
| Consultation hours are offered if 1) consultation hour owner is admin or tutor and no object assignment 2) object is assigned to consultation hour. More... | |
| static | hasObjectBookingEntries (int $a_obj_id, int $a_usr_id) |
| Check if object has assigned consultation hour appointments. More... | |
| static | lookupBookingMessage (int $a_entry_id, int $a_usr_id) |
| static | writeBookingMessage (int $a_entry_id, int $a_usr_id, string $a_message) |
| Write booking message. More... | |
| static | lookupBookingsForAppointment (int $a_app_id) |
| Lookup booked users for appointment. More... | |
| static | lookupBookingsForObject (int $a_obj_id, int $a_usr_id) |
| Lookup booking for an object and user. More... | |
| static | lookupManagedBookingsForObject (int $a_obj_id, int $a_usr_id) |
| Lookup bookings for own and managed consultation hours of an object. More... | |
Protected Member Functions | |
| setId (int $a_id) | |
| read () | |
Protected Attributes | |
| ilDBInterface | $db |
| ilObjUser | $user |
Private Attributes | |
| int | $id = 0 |
| int | $obj_id = 0 |
| int | $deadline = 0 |
| int | $num_bookings = 1 |
| array | $target_obj_ids = [] |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Booking definition
Definition at line 26 of file class.ilBookingEntry.php.
| ilBookingEntry::__construct | ( | int | $a_booking_id = 0 | ) |
Constructor.
Definition at line 41 of file class.ilBookingEntry.php.
References $DIC, getId(), read(), setId(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilBookingEntry::book | ( | int | $a_entry_id, |
| ?int | $a_user_id = null |
||
| ) |
book calendar entry for user
Definition at line 609 of file class.ilBookingEntry.php.
References hasBooked(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilBookingEntry::cancelBooking | ( | int | $a_entry_id, |
| ?int | $a_user_id = null |
||
| ) |
cancel calendar booking for user
Definition at line 626 of file class.ilBookingEntry.php.
References ilDateTime\_before(), deleteBooking(), hasBooked(), IL_CAL_UNIX, ilCalendarMailNotification\TYPE_BOOKING_CANCELLATION, and ILIAS\Repository\user().
Here is the call graph for this function:| ilBookingEntry::delete | ( | ) |
Definition at line 199 of file class.ilBookingEntry.php.
References getId().
Here is the call graph for this function:| ilBookingEntry::deleteBooking | ( | int | $a_entry_id, |
| int | $a_user_id | ||
| ) |
Delete booking.
Definition at line 650 of file class.ilBookingEntry.php.
Referenced by cancelBooking().
Here is the caller graph for this function:| ilBookingEntry::getCurrentBookings | ( | int | $a_entry_id | ) |
get current bookings
| int | $a_entry_id |
Definition at line 450 of file class.ilBookingEntry.php.
References $res, and ILIAS\Repository\int().
Referenced by ilConsultationHoursGUI\deleteAppointments(), and ilConsultationHoursGUI\sendMailToSelectedUsers().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingEntry::getCurrentNumberOfBookings | ( | int | $a_entry_id | ) |
get current number of bookings
Definition at line 434 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\assignUsersToAppointment(), isAppointmentBookableForUser(), and isBookedOut().
Here is the caller graph for this function:| ilBookingEntry::getDeadlineHours | ( | ) |
Definition at line 104 of file class.ilBookingEntry.php.
References $deadline.
Referenced by ilConsultationHoursGUI\edit(), isAppointmentBookableForUser(), isBookedOut(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::getId | ( | ) |
Definition at line 83 of file class.ilBookingEntry.php.
References $id.
Referenced by __construct(), ilConsultationHoursGUI\createAppointments(), delete(), ilConsultationHourUtils\findCalendarAppointmentsForBooking(), read(), ilConsultationHoursGUI\rewriteBookingIdsForAppointments(), save(), and update().
Here is the caller graph for this function:
|
static |
Get instance by calendar entry.
| int | $id |
Definition at line 282 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\assignUsersToAppointment(), ilConsultationHoursGUI\deleteAppointments(), and ilConsultationHoursGUI\rewriteBookingIdsForAppointments().
Here is the caller graph for this function:| ilBookingEntry::getNumberOfBookings | ( | ) |
Definition at line 114 of file class.ilBookingEntry.php.
References $num_bookings.
Referenced by ilConsultationHoursGUI\assignUsersToAppointment(), ilConsultationHoursGUI\edit(), isAppointmentBookableForUser(), isBookedOut(), ILIAS\Calendar\ConsultationHours\BookingDataProvider\isFiltered(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::getObjId | ( | ) |
Definition at line 94 of file class.ilBookingEntry.php.
References $obj_id.
Referenced by isBookedOut(), isOwner(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::getTargetObjIds | ( | ) |
Definition at line 130 of file class.ilBookingEntry.php.
References $target_obj_ids.
Referenced by ilConsultationHoursGUI\edit(), and isTargetObjectVisible().
Here is the caller graph for this function:| ilBookingEntry::hasBooked | ( | int | $a_entry_id, |
| ?int | $a_user_id = null |
||
| ) |
get current number of bookings
Definition at line 536 of file class.ilBookingEntry.php.
References ILIAS\Repository\user().
Referenced by book(), cancelBooking(), and isBookedOut().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if object has assigned consultation hour appointments.
Definition at line 376 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_INTEGER.
Referenced by ilExportFieldsInfo\getSelectableFieldsInfo(), and ilMemberExportGUI\initSettingsForm().
Here is the caller graph for this function:| ilBookingEntry::isAppointmentBookableForUser | ( | int | $a_app_id, |
| int | $a_user_id | ||
| ) |
Check if a calendar appointment is bookable for a specific user.
Definition at line 584 of file class.ilBookingEntry.php.
References ilDateTime\_after(), ANONYMOUS_USER_ID, getCurrentNumberOfBookings(), getDeadlineHours(), getNumberOfBookings(), IL_CAL_HOUR, and IL_CAL_UNIX.
Here is the call graph for this function:
|
static |
Which objects are bookable?
| int[] | $a_obj_ids | |
| int | null | $a_target_obj_id |
Definition at line 298 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Here is the call graph for this function:| ilBookingEntry::isBookedOut | ( | int | $a_entry_id, |
| bool | $a_check_current_user = false |
||
| ) |
get current number of bookings
Definition at line 556 of file class.ilBookingEntry.php.
References getCurrentNumberOfBookings(), getDeadlineHours(), getNumberOfBookings(), getObjId(), hasBooked(), IL_CAL_UNIX, and ILIAS\Repository\user().
Here is the call graph for this function:| ilBookingEntry::isOwner | ( | ?int | $a_user_id = null | ) |
check if current (or given) user is entry owner
| int | null | $a_user_id |
Definition at line 238 of file class.ilBookingEntry.php.
References getObjId(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilBookingEntry::isTargetObjectVisible | ( | int | $a_ref_id | ) |
Check if target ref id is visible.
Definition at line 138 of file class.ilBookingEntry.php.
References ilObject\_lookupObjId(), and getTargetObjIds().
Here is the call graph for this function:
|
static |
Consultation hours are offered if 1) consultation hour owner is admin or tutor and no object assignment 2) object is assigned to consultation hour.
| int[] | $a_obj_ids |
| int[] | $a_user_ids |
Definition at line 329 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and ilCalendarCategory\TYPE_CH.
Referenced by ilConsultationHourUtils\getConsultationHourLinksForRepositoryObject(), ilCalendarBlockGUI\getHTML(), and ilCalendarCategories\readAllConsultationHoursCalendarOfContainer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 399 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilConsultationHourBookingTableGUI\parse(), ILIAS\Calendar\ConsultationHours\BookingDataProvider\read(), and ilCalendarMailNotification\send().
Here is the caller graph for this function:
|
static |
Lookup booked users for appointment.
| int | $a_app_id |
Definition at line 466 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilConsultationHourBookingTableGUI\parse().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Lookup booking for an object and user.
| int | $a_obj_id | |
| int | $a_usr_id |
Definition at line 487 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, IL_CAL_DATETIME, IL_CAL_UNIX, ILIAS\Repository\int(), ilDBConstants\T_INTEGER, and ilTimeZone\UTC.
Here is the call graph for this function:
|
static |
Lookup bookings of user.
| int[] | |
| int | |
| ?ilDateTime |
Definition at line 60 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilConsultationHoursGUI\assignUsersToAppointment().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Lookup bookings for own and managed consultation hours of an object.
Definition at line 518 of file class.ilBookingEntry.php.
References ilObjUser\_lookupFullname(), and ilConsultationHourUtils\lookupManagedUsers().
Referenced by ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), and ilMemberExport\write().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 209 of file class.ilBookingEntry.php.
References $res, ilDBConstants\FETCHMODE_ASSOC, ilDBConstants\FETCHMODE_OBJECT, getId(), ILIAS\Repository\int(), setDeadlineHours(), setNumberOfBookings(), and setObjId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove unused booking entries.
Definition at line 252 of file class.ilBookingEntry.php.
References $DIC, $ilDB, $q, and ilCalendarCategory\TYPE_CH.
Referenced by ilConsultationHoursGUI\deleteAppointments(), and ilConsultationHoursGUI\updateMulti().
Here is the caller graph for this function:| ilBookingEntry::save | ( | ) |
Definition at line 149 of file class.ilBookingEntry.php.
References getDeadlineHours(), getId(), getNumberOfBookings(), getObjId(), and setId().
Referenced by ilConsultationHoursGUI\createNewBookingEntry(), and ilConsultationHoursGUI\saveSequence().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingEntry::setDeadlineHours | ( | int | $a_hours | ) |
Definition at line 99 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\createNewBookingEntry(), read(), and ilConsultationHoursGUI\saveSequence().
Here is the caller graph for this function:
|
protected |
Definition at line 78 of file class.ilBookingEntry.php.
Referenced by __construct(), and save().
Here is the caller graph for this function:| ilBookingEntry::setNumberOfBookings | ( | int | $a_num | ) |
Definition at line 109 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\createNewBookingEntry(), read(), and ilConsultationHoursGUI\saveSequence().
Here is the caller graph for this function:| ilBookingEntry::setObjId | ( | int | $a_id | ) |
Definition at line 89 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\createNewBookingEntry(), read(), and ilConsultationHoursGUI\saveSequence().
Here is the caller graph for this function:| ilBookingEntry::setTargetObjIds | ( | ?array | $a_obj_id | ) |
| int[]|null | $a_obj_id |
Definition at line 122 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\createNewBookingEntry(), and ilConsultationHoursGUI\saveSequence().
Here is the caller graph for this function:| ilBookingEntry::update | ( | ) |
Definition at line 171 of file class.ilBookingEntry.php.
References getDeadlineHours(), getId(), getNumberOfBookings(), and getObjId().
Here is the call graph for this function:
|
static |
Write booking message.
Definition at line 418 of file class.ilBookingEntry.php.
Referenced by ilConsultationHourUtils\bookAppointment().
Here is the caller graph for this function:
|
protected |
Definition at line 28 of file class.ilBookingEntry.php.
|
private |
Definition at line 34 of file class.ilBookingEntry.php.
Referenced by getDeadlineHours().
|
private |
Definition at line 31 of file class.ilBookingEntry.php.
Referenced by getId().
|
private |
Definition at line 35 of file class.ilBookingEntry.php.
Referenced by getNumberOfBookings().
|
private |
Definition at line 32 of file class.ilBookingEntry.php.
Referenced by getObjId().
|
private |
Definition at line 36 of file class.ilBookingEntry.php.
Referenced by getTargetObjIds().
|
protected |
Definition at line 29 of file class.ilBookingEntry.php.