Stud.IP  jlu_4.3 Revision 64286
Resources_BookingController Class Reference
Inheritance diagram for Resources_BookingController:
Inheritance graph
Collaboration diagram for Resources_BookingController:
Collaboration graph

Public Member Functions

 before_filter (&$action, &$args)
 
 index_action ($booking_id=null)
 
 add_from_request_action ($resource_id=null, $request_id=null)
 
 addEditHandler ($mode='edit')
 
 add_action ($resource_id=null, $booking_type=null)
 
 edit_action ($booking_id=null)
 
 copy_action ($booking_id=null)
 
 move_action ($booking_id=null)
 
 copy_to_semester_action ($booking_id=null)
 
 delete_action ($booking_id=null)
 
- Public Member Functions inherited from StudipController
 before_filter (&$action, &$args)
 
 perform ($unconsumed_path)
 
 after_filter ($action, $args)
 
 validate_args (&$args, $types=null)
 
 url_for ($to='')
 
 link_for ($to='')
 
 relocate ($to)
 
 rescue ($exception)
 
 render_json ($data)
 
 render_csv ($data, $filename=null, $delimiter=';', $enclosure='"')
 
 relay ($to_uri)
 
 perform_relayed ($unconsumed)
 
 render_template_as_string ($template, $layout=null)
 
 __call ($method, $arguments)
 
 has_action ($action)
 
 action_url ($action)
 
 action_link ($action)
 

Protected Member Functions

 sendLockBookingMail (ResourceBooking $booking)
 
 assignResourceAndCollectResults ( $booking=null, Resource $resource, User $user, DateTime $begin, DateTime $end, $preparation_time=0, $description='', $comment='', $booking_type='0', $assigned_user=null, $repetition_interval=null, DateTime $repetition_end, $notification_enabled=false, $included_room_parts=[], $overwrite_bookings=false)
 
 displayAssignResultMessages ( $booking_type=0, $booking_count=0, $errors=[], $room_part_errors=[])
 
- Protected Member Functions inherited from StudipController
 render_pdf (TCPDF $pdf, $filename, $inline=false)
 
 controller_path ()
 

Additional Inherited Members

- Protected Attributes inherited from AuthenticatedController
 $with_session = true
 
 $allow_nobody = false
 
- Protected Attributes inherited from StudipController
 $with_session = false
 
 $allow_nobody = true
 
 $_autobind = false
 

Detailed Description

Resources_BookingController contains functionality for resource bookings.

Member Function Documentation

◆ add_action()

add_action (   $resource_id = null,
  $booking_type = null 
)
Here is the call graph for this function:

◆ add_from_request_action()

add_from_request_action (   $resource_id = null,
  $request_id = null 
)

This action handles the creation of an booking by specifying a resource and a resource request.

Here is the call graph for this function:

◆ addEditHandler()

addEditHandler (   $mode = 'edit')

This action handles assigning, reserving and locking a resource without having to create a resource request before (direct booking).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assignResourceAndCollectResults()

assignResourceAndCollectResults (   $booking = null,
Resource  $resource,
User  $user,
DateTime  $begin,
DateTime  $end,
  $preparation_time = 0,
  $description = '',
  $comment = '',
  $booking_type = '0',
  $assigned_user = null,
  $repetition_interval = null,
DateTime  $repetition_end,
  $notification_enabled = false,
  $included_room_parts = [],
  $overwrite_bookings = false 
)
protected

An internal helper method for assigning resources and collecting the results.

Parameters
ResourceBooking | null$bookingEither a ResourceBooking object or null. If a ResourceBooking object is specified its content will be updated. Otherwise a new object will be created.
Returns
Array An associative array with the following structure: [ 'errors' => Error messages related to booking the resource. 'room_part_errors' => Error messages related to the booking of other resource parts. 'bookings' => The created bookings. ]
Here is the call graph for this function:
Here is the caller graph for this function:

◆ before_filter()

before_filter ( $action,
$args 
)

Reimplemented from StudipController.

Here is the call graph for this function:

◆ copy_action()

copy_action (   $booking_id = null)

This action can copy a booking to another resource of the same resource class.

Here is the call graph for this function:

◆ copy_to_semester_action()

copy_to_semester_action (   $booking_id = null)

This action can copy an booking in another semester.

Here is the call graph for this function:

◆ delete_action()

delete_action (   $booking_id = null)

This action is responsible for deleting a resource booking.

Here is the call graph for this function:

◆ displayAssignResultMessages()

displayAssignResultMessages (   $booking_type = 0,
  $booking_count = 0,
  $errors = [],
  $room_part_errors = [] 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ edit_action()

edit_action (   $booking_id = null)
Here is the call graph for this function:

◆ index_action()

index_action (   $booking_id = null)
Here is the call graph for this function:

◆ move_action()

move_action (   $booking_id = null)

This action can move a booking to another resource of the same resource class.

Here is the call graph for this function:

◆ sendLockBookingMail()

sendLockBookingMail ( ResourceBooking  $booking)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: