ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Booking process ui class. More...
Public Member Functions | |
__construct (ilObjBookingPool $pool, int $booking_object_id, ilBookingHelpAdapter $help, string $seed="", string $sseed="", int $context_obj_id=0) | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
book () | |
First step in booking process. More... | |
assignParticipants () | |
bookMultipleParticipants () | |
Create reservations for a bunch of booking pool participants. More... | |
redirectToList () | |
saveMultipleBookings () | |
Save multiple users reservations for one booking pool object. More... | |
confirmedBooking () | |
Book object - either of type or specific - for given dates. More... | |
processBooking ($a_object_id, $a_from=null, $a_to=null, $a_group_id=null) | |
Book object for date. More... | |
confirmBookingNumbers (array $a_objects_counter, $a_group_id, ilPropertyFormGUI $a_form=null) | |
confirmedBookingNumbers () | |
displayPostInfo () | |
Display post booking informatins. More... | |
deliverPostFile () | |
Deliver post booking file. More... | |
Protected Member Functions | |
back () | |
Back to parent. More... | |
setHelpId (string $a_id) | |
checkPermissionBool ($a_perm) | |
Check permission. More... | |
checkPermission ($a_perm) | |
Check permission. More... | |
saveParticipant () | |
save booking participant. More... | |
initBookingNumbersForm (array $a_objects_counter, $a_group_id, $a_reload=false) | |
addDaysDate ($a_date, $a_days) | |
addDaysStamp ($a_stamp, $a_days) | |
handleBookingSuccess ($a_obj_id, array $a_rsv_ids=null) | |
Protected Attributes | |
$pool | |
$booking_object_id | |
$user_id_to_book | |
$user_id_assigner | |
$seed | |
$help | |
$context_obj_id | |
Booking process ui class.
Definition at line 11 of file class.ilBookingProcessGUI.php.
ilBookingProcessGUI::__construct | ( | ilObjBookingPool | $pool, |
int | $booking_object_id, | ||
ilBookingHelpAdapter | $help, | ||
string | $seed = "" , |
||
string | $sseed = "" , |
||
int | $context_obj_id = 0 |
||
) |
Constructor.
Definition at line 52 of file class.ilBookingProcessGUI.php.
References $_GET, $booking_object_id, $context_obj_id, $DIC, $help, $pool, $seed, $user_id_assigner, help(), and user().
|
protected |
Definition at line 966 of file class.ilBookingProcessGUI.php.
Referenced by confirmedBookingNumbers().
|
protected |
Definition at line 973 of file class.ilBookingProcessGUI.php.
Referenced by confirmedBookingNumbers().
ilBookingProcessGUI::assignParticipants | ( | ) |
Definition at line 520 of file class.ilBookingProcessGUI.php.
|
protected |
Back to parent.
Definition at line 120 of file class.ilBookingProcessGUI.php.
Referenced by bookMultipleParticipants(), checkPermission(), confirmedBookingNumbers(), handleBookingSuccess(), and saveMultipleBookings().
ilBookingProcessGUI::book | ( | ) |
First step in booking process.
Definition at line 169 of file class.ilBookingProcessGUI.php.
References $i, $ilUser, $in, $seed, $tpl, ilCalendarUtil\_buildWeekDayList(), ilCalendarAppointmentColors\_getColorsByType(), ilCalendarUserSettings\_getInstanceByUserId(), ilCalendarUtil\_numericDayToString(), ilCalendarUtil\_numericMonthToString(), ilCalendarUtil\calculateFontColor(), ilDatePresentation\formatDate(), ilBookingSchedule\getAvailabilityFrom(), ilBookingSchedule\getAvailabilityTo(), ilBookingReservation\getAvailableObject(), ilBookingSchedule\getDeadline(), ilBookingSchedule\getDefinition(), ilBookingSchedule\getRaster(), IL_CAL_DATE, IL_CAL_FKT_GETDATE, IL_CAL_UNIX, setHelpId(), ilCalendarSettings\TIME_FORMAT_12, ilCalendarSettings\TIME_FORMAT_24, ilObjBookingPool\TYPE_FIX_SCHEDULE, ilDateTime\WEEK, and ilDateTime\YEAR.
Referenced by confirmedBooking().
ilBookingProcessGUI::bookMultipleParticipants | ( | ) |
Create reservations for a bunch of booking pool participants.
Definition at line 533 of file class.ilBookingProcessGUI.php.
References $_POST, $name, ilObjUser\_lookupFullname(), back(), and ilBookingReservation\numAvailableFromObjectNoSchedule().
|
protected |
Check permission.
$a_perm |
Definition at line 153 of file class.ilBookingProcessGUI.php.
References back(), checkPermissionBool(), and ilUtil\sendFailure().
Referenced by processBooking().
|
protected |
Check permission.
$a_perm |
Definition at line 138 of file class.ilBookingProcessGUI.php.
Referenced by checkPermission().
ilBookingProcessGUI::confirmBookingNumbers | ( | array | $a_objects_counter, |
$a_group_id, | |||
ilPropertyFormGUI | $a_form = null |
||
) |
Definition at line 740 of file class.ilBookingProcessGUI.php.
References $tpl, and initBookingNumbersForm().
Referenced by confirmedBooking(), and confirmedBookingNumbers().
ilBookingProcessGUI::confirmedBooking | ( | ) |
Book object - either of type or specific - for given dates.
Definition at line 615 of file class.ilBookingProcessGUI.php.
References $_POST, Vendor\Package\$f, $success, book(), confirmBookingNumbers(), ilBookingReservation\getAvailableObject(), ilBookingObject\getNrOfItemsForObjects(), ilBookingReservation\getObjectReservationForUser(), handleBookingSuccess(), ilBookingReservation\isObjectAvailableNoSchedule(), processBooking(), saveParticipant(), ilUtil\sendFailure(), and ilObjBookingPool\TYPE_FIX_SCHEDULE.
ilBookingProcessGUI::confirmedBookingNumbers | ( | ) |
Definition at line 844 of file class.ilBookingProcessGUI.php.
References $_POST, $success, addDaysDate(), addDaysStamp(), back(), confirmBookingNumbers(), ilBookingReservation\getAvailableObject(), handleBookingSuccess(), IL_CAL_DATE, initBookingNumbersForm(), ilCalendarUtil\parseIncomingDate(), processBooking(), saveParticipant(), and ilUtil\sendFailure().
ilBookingProcessGUI::deliverPostFile | ( | ) |
Deliver post booking file.
Definition at line 1099 of file class.ilBookingProcessGUI.php.
References $user_id_assigner, ilUtil\deliverFile(), and ilBookingReservation\getObjectReservationForUser().
ilBookingProcessGUI::displayPostInfo | ( | ) |
Display post booking informatins.
Definition at line 1012 of file class.ilBookingProcessGUI.php.
References $ilCtrl, $lng, $tpl, $url, ilDatePresentation\formatPeriod(), ilBookingReservation\getObjectReservationForUser(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
ilBookingProcessGUI::executeCommand | ( | ) |
|
protected |
Definition at line 990 of file class.ilBookingProcessGUI.php.
References back().
Referenced by confirmedBooking(), and confirmedBookingNumbers().
|
protected |
Definition at line 755 of file class.ilBookingProcessGUI.php.
References $section, ilDatePresentation\formatPeriod(), IL_CAL_UNIX, and ilFormPropertyGUI\setRequired().
Referenced by confirmBookingNumbers(), and confirmedBookingNumbers().
ilBookingProcessGUI::processBooking | ( | $a_object_id, | |
$a_from = null , |
|||
$a_to = null , |
|||
$a_group_id = null |
|||
) |
Book object for date.
int | $a_object_id | |
int | $a_from | timestamp |
int | $a_to | timestamp |
int | $a_group_id |
Definition at line 701 of file class.ilBookingProcessGUI.php.
References ilCalendarCategoryAssignments\addAssignment(), checkPermission(), IL_CAL_UNIX, ilCalendarUtil\initDefaultCalendarByType(), ilCalendarEntry\setStart(), and ilCalendarCategory\TYPE_BOOK.
Referenced by confirmedBooking(), confirmedBookingNumbers(), and saveMultipleBookings().
ilBookingProcessGUI::redirectToList | ( | ) |
Definition at line 574 of file class.ilBookingProcessGUI.php.
ilBookingProcessGUI::saveMultipleBookings | ( | ) |
Save multiple users reservations for one booking pool object.
//TODO check if object/user exist in the DB,
Definition at line 583 of file class.ilBookingProcessGUI.php.
References $_POST, back(), processBooking(), and ilUtil\sendFailure().
|
protected |
save booking participant.
Definition at line 687 of file class.ilBookingProcessGUI.php.
Referenced by confirmedBooking(), and confirmedBookingNumbers().
|
protected |
string | $a_id |
Definition at line 128 of file class.ilBookingProcessGUI.php.
References help().
Referenced by book().
|
protected |
Definition at line 21 of file class.ilBookingProcessGUI.php.
Referenced by __construct().
|
protected |
Definition at line 47 of file class.ilBookingProcessGUI.php.
Referenced by __construct().
|
protected |
Definition at line 42 of file class.ilBookingProcessGUI.php.
Referenced by __construct().
|
protected |
Definition at line 16 of file class.ilBookingProcessGUI.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.ilBookingProcessGUI.php.
Referenced by __construct(), and book().
|
protected |
Definition at line 32 of file class.ilBookingProcessGUI.php.
Referenced by __construct(), and deliverPostFile().
|
protected |
Definition at line 27 of file class.ilBookingProcessGUI.php.