Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
ResourceBooking Class Reference
Inheritance diagram for ResourceBooking:
RouteMap

Public Member Functions

 move ($booking_id)
 
 getIntervals ($booking_id)
 
- Public Member Functions inherited from RouteMap
 __construct ()
 
 init ($router, $route)
 
 paginated ($data, $total, $uri_params=[], $query_params=[])
 
 paginate ($uri_format, $total, $offset=null, $limit=null)
 
 collect ($data)
 
 status ($status)
 
 headers ($headers=[])
 
 body ($body)
 
 contentType ($mime_type, $params=[])
 
 error ($status, $body=null)
 
 etag ($value, $strong_etag=true, $new_resource=null)
 
 expires ($amount, $cache_control=[])
 
 cacheControl ($values)
 
 halt ()
 
 lastModified ($time)
 
 notFound ($body=null)
 
 redirect ($url, $args=null)
 
 sendFile ($_path, $opts=[])
 
 url ($addr, $url_params=null)
 
 urlf ($addr_f, $format_params, $url_params=null)
 
 getRoutes ($http_method=null)
 
 getResponse ()
 

Protected Member Functions

 sendReturnData ($data)
 
- Protected Member Functions inherited from RouteMap
 extractConditions ($docblock, $conditions=[])
 

Additional Inherited Members

- Protected Attributes inherited from RouteMap
 $router
 
 $route
 
 $data = null
 
 $response
 
 $pagination = false
 
 $offset
 
 $limit
 

Detailed Description

This file contains the REST class for the room and resource management system.

Author
Moritz Strohm stroh.nosp@m.m@da.nosp@m.ta-qu.nosp@m.est..nosp@m.de
Since
4.5

Member Function Documentation

getIntervals (   $booking_id)

Retrieves the intervals of the resource booking. These can be filtered by a time range.

/resources/booking/:booking_id/intervals

move (   $booking_id)

Moves a resource booking, if permitted.

Postcondition
/resources/booking/:booking_id/move
sendReturnData (   $data)
protected

Helper method that either returns the specified data or simply an empty string in case that no request result is requested.


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