|
ILIAS
release_4-3 Revision
|
Booking definition. More...
Collaboration diagram for ilBookingEntry:Public Member Functions | |
| __construct ($a_booking_id=0) | |
| Constructor. | |
| getId () | |
| Get id. | |
| setObjId ($a_id) | |
| Set obj id. | |
| getObjId () | |
| get obj id | |
| setDeadlineHours ($a_hours) | |
| set deadline hours | |
| getDeadlineHours () | |
| get deadline hours | |
| setNumberOfBookings ($a_num) | |
| set number of bookings | |
| getNumberOfBookings () | |
| get number of bookings | |
| setTargetObjId ($a_obj_id) | |
| set target object id | |
| getTargetObjId () | |
| get target object id | |
| save () | |
| Save a new booking entry. | |
| update () | |
| Update an existing booking entry. | |
| delete () | |
| Delete. | |
| isOwner ($a_user_id=NULL) | |
| check if current (or given) user is entry owner | |
| getCurrentNumberOfBookings ($a_entry_id) | |
| get current number of bookings | |
| getCurrentBookings ($a_entry_id) | |
| get current bookings | |
| hasBooked ($a_entry_id, $a_user_id=NULL) | |
| get current number of bookings | |
| isBookedOut ($a_entry_id, $a_check_current_user=false) | |
| get current number of bookings | |
| book ($a_entry_id, $a_user_id=false) | |
| book calendar entry for user | |
| cancelBooking ($a_entry_id, $a_user_id=false) | |
| cancel calendar booking for user | |
Static Public Member Functions | |
| static | removeObsoleteEntries () |
| Remove unused booking entries. | |
| static | getInstanceByCalendarEntryId ($a_id) |
| Get instance by calendar entry. | |
| static | isBookable (array $a_obj_ids, $a_target_obj_id=NULL) |
| Which objects are bookable? | |
Protected Member Functions | |
| setId ($a_id) | |
| Set id. | |
| read () | |
| Read settings from db. | |
Private Attributes | |
| $id = 0 | |
| $obj_id = 0 | |
| $deadline = 0 | |
| $num_bookings = 1 | |
| $target_obj_id = NULL | |
| ilBookingEntry::__construct | ( | $a_booking_id = 0 | ) |
| ilBookingEntry::book | ( | $a_entry_id, | |
$a_user_id = false |
|||
| ) |
book calendar entry for user
| int | $a_entry_id | |
| int | $a_user_id |
Definition at line 398 of file class.ilBookingEntry.php.
References $ilUser, hasBooked(), and ilCalendarMailNotification\TYPE_BOOKING_CONFIRMATION.
Referenced by ilCalendarAppointmentGUI\bookconfirmed().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingEntry::cancelBooking | ( | $a_entry_id, | |
$a_user_id = false |
|||
| ) |
cancel calendar booking for user
| int | $a_entry_id | |
| int | $a_user_id |
Definition at line 428 of file class.ilBookingEntry.php.
References $ilUser, hasBooked(), and ilCalendarMailNotification\TYPE_BOOKING_CANCELLATION.
Referenced by ilCalendarAppointmentGUI\cancelConfirmed().
Here is the call graph for this function:
Here is the caller graph for this function:| ilBookingEntry::delete | ( | ) |
| ilBookingEntry::getCurrentBookings | ( | $a_entry_id | ) |
get current bookings
| int | $a_entry_id |
Definition at line 317 of file class.ilBookingEntry.php.
| ilBookingEntry::getCurrentNumberOfBookings | ( | $a_entry_id | ) |
get current number of bookings
| int | $a_entry_id |
Definition at line 302 of file class.ilBookingEntry.php.
References $row.
Referenced by isBookedOut().
Here is the caller graph for this function:| ilBookingEntry::getDeadlineHours | ( | ) |
get deadline hours
Definition at line 87 of file class.ilBookingEntry.php.
References $deadline.
Referenced by isBookedOut(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::getId | ( | ) |
Get id.
Definition at line 49 of file class.ilBookingEntry.php.
References $id.
Referenced by __construct(), ilConsultationHoursGUI\createAppointments(), delete(), read(), save(), and update().
Here is the caller graph for this function:
|
static |
Get instance by calendar entry.
| int | $id |
Definition at line 256 of file class.ilBookingEntry.php.
Referenced by ilConsultationHoursGUI\delete(), and ilConsultationHoursGUI\updateMulti().
Here is the caller graph for this function:| ilBookingEntry::getNumberOfBookings | ( | ) |
get number of bookings
Definition at line 106 of file class.ilBookingEntry.php.
References $num_bookings.
Referenced by isBookedOut(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::getObjId | ( | ) |
get obj id
Definition at line 68 of file class.ilBookingEntry.php.
References $obj_id.
Referenced by isBookedOut(), isOwner(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::getTargetObjId | ( | ) |
get target object id
Definition at line 125 of file class.ilBookingEntry.php.
References $target_obj_id.
Referenced by ilConsultationHoursTableGUI\parse(), save(), and update().
Here is the caller graph for this function:| ilBookingEntry::hasBooked | ( | $a_entry_id, | |
$a_user_id = NULL |
|||
| ) |
get current number of bookings
| int | $a_entry_id | |
| int | $a_user_id |
Definition at line 337 of file class.ilBookingEntry.php.
Referenced by book(), cancelBooking(), and isBookedOut().
Here is the caller graph for this function:
|
static |
Which objects are bookable?
| array | $a_obj_ids | |
| int | $a_target_obj_id |
Definition at line 274 of file class.ilBookingEntry.php.
Referenced by ilCalendarBlockGUI\getHTML().
Here is the caller graph for this function:| ilBookingEntry::isBookedOut | ( | $a_entry_id, | |
$a_check_current_user = false |
|||
| ) |
get current number of bookings
| int | $a_entry_id | |
| bool | $a_check_current_user |
Definition at line 359 of file class.ilBookingEntry.php.
References $deadline, $ilUser, getCurrentNumberOfBookings(), getDeadlineHours(), getNumberOfBookings(), getObjId(), hasBooked(), and IL_CAL_UNIX.
Here is the call graph for this function:| ilBookingEntry::isOwner | ( | $a_user_id = NULL | ) |
check if current (or given) user is entry owner
| int | $a_user_id |
Definition at line 216 of file class.ilBookingEntry.php.
References $ilUser, and getObjId().
Here is the call graph for this function:
|
protected |
Read settings from db.
Definition at line 189 of file class.ilBookingEntry.php.
References $query, $res, $row, DB_FETCHMODE_ASSOC, getId(), setDeadlineHours(), setNumberOfBookings(), setObjId(), and setTargetObjId().
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 235 of file class.ilBookingEntry.php.
References $row, and ilCalendarCategory\TYPE_CH.
Referenced by ilConsultationHoursGUI\delete(), and ilConsultationHoursGUI\updateMulti().
Here is the caller graph for this function:| ilBookingEntry::save | ( | ) |
Save a new booking entry.
Definition at line 134 of file class.ilBookingEntry.php.
References $query, getDeadlineHours(), getId(), getNumberOfBookings(), getObjId(), getTargetObjId(), and setId().
Here is the call graph for this function:| ilBookingEntry::setDeadlineHours | ( | $a_hours | ) |
set deadline hours
| int | $a_hours |
Definition at line 78 of file class.ilBookingEntry.php.
Referenced by read().
Here is the caller graph for this function:
|
protected |
Set id.
| int | $a_id |
Definition at line 40 of file class.ilBookingEntry.php.
Referenced by __construct(), and save().
Here is the caller graph for this function:| ilBookingEntry::setNumberOfBookings | ( | $a_num | ) |
set number of bookings
| int | $a_num |
Definition at line 97 of file class.ilBookingEntry.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingEntry::setObjId | ( | $a_id | ) |
Set obj id.
| int | $a_id |
Definition at line 59 of file class.ilBookingEntry.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingEntry::setTargetObjId | ( | $a_obj_id | ) |
set target object id
| int | $a_obj_id |
Definition at line 116 of file class.ilBookingEntry.php.
Referenced by read().
Here is the caller graph for this function:| ilBookingEntry::update | ( | ) |
Update an existing booking entry.
Definition at line 155 of file class.ilBookingEntry.php.
References $query, getDeadlineHours(), getId(), getNumberOfBookings(), getObjId(), and getTargetObjId().
Here is the call graph for this function:
|
private |
Definition at line 18 of file class.ilBookingEntry.php.
Referenced by getDeadlineHours(), and isBookedOut().
|
private |
Definition at line 15 of file class.ilBookingEntry.php.
Referenced by getId().
|
private |
Definition at line 19 of file class.ilBookingEntry.php.
Referenced by getNumberOfBookings().
|
private |
Definition at line 16 of file class.ilBookingEntry.php.
Referenced by getObjId().
|
private |
Definition at line 20 of file class.ilBookingEntry.php.
Referenced by getTargetObjId().