1 | <?php |
||
12 | class TimeslotsController extends Controller |
||
13 | { |
||
14 | 24 | public function __construct() |
|
20 | |||
21 | //TODO check that the calendar is not a caldav calendar, maybe future improvement |
||
22 | |||
23 | /** |
||
24 | * Display a listing of the resource. |
||
25 | * |
||
26 | * @param int $calendarId |
||
27 | * @param Request $request needed for get query to get only current timeslots |
||
28 | * @return \Illuminate\Http\Response |
||
29 | */ |
||
30 | 6 | public function index($calendarId, Request $request) |
|
43 | |||
44 | /** |
||
45 | * Store a newly created resource in storage. |
||
46 | * |
||
47 | * @param TimeslotRequest $request |
||
48 | * @param int $calendarId |
||
49 | * @return \Illuminate\Http\Response |
||
50 | */ |
||
51 | 3 | public function store(TimeslotRequest $request, $calendarId) |
|
63 | |||
64 | /** |
||
65 | * Display the specified resource. |
||
66 | * |
||
67 | * @param int $calendarId |
||
68 | * @param int $timeslotId |
||
69 | * @return \Illuminate\Http\Response |
||
70 | */ |
||
71 | 9 | public function show($calendarId, $timeslotId) |
|
80 | |||
81 | /** |
||
82 | * Update the specified resource in storage. |
||
83 | * |
||
84 | * @param TimeslotRequest $request |
||
85 | * @param int $calendarId |
||
86 | * @param int $timeslotId |
||
87 | * @return \Illuminate\Http\Response |
||
88 | */ |
||
89 | 3 | public function update(TimeslotRequest $request, $calendarId, $timeslotId) |
|
100 | |||
101 | /** |
||
102 | * Remove the specified resource from storage. |
||
103 | * |
||
104 | * @param int $calendarId |
||
105 | * @param int $timeslotId |
||
106 | * @return \Illuminate\Http\Response |
||
107 | */ |
||
108 | 3 | public function destroy($calendarId, $timeslotId) |
|
118 | } |
||
119 |