\App\Http\ControllersEventController

Class EventController

This class provide controller functions for events. This is a bridge between DB and frontend controlling events.

Summary

Methods
Properties
Constants
__construct()
events()
addEvents()
editEvents()
editOption()
eventGetAllEvents()
showEvent()
eventCreateEvent()
eventUpdateEvent()
eventUpdateEventOption()
eventUpdateOption()
delete()
deleteOption()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : void

Create a new controller instance.

events()

events() : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Return events frontend view

Returns

\Illuminate\Contracts\View\Factory|\Illuminate\View\View

addEvents()

addEvents(\Illuminate\Http\Request  $request, null  $unit_id = null) : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Parameters

\Illuminate\Http\Request $request
null $unit_id

Returns

\Illuminate\Contracts\View\Factory|\Illuminate\View\View

editEvents()

editEvents(  $events_id) : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Parameters

$events_id

Returns

\Illuminate\Contracts\View\Factory|\Illuminate\View\View

editOption()

editOption(  $option_id) : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Parameters

$option_id

Returns

\Illuminate\Contracts\View\Factory|\Illuminate\View\View

eventGetAllEvents()

eventGetAllEvents() : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Returns

\Illuminate\Contracts\View\Factory|\Illuminate\View\View

showEvent()

showEvent(  $event_id) : \Illuminate\Http\RedirectResponse

Function for showing an event

Done, workingby Volko

Parameters

$event_id

Returns

\Illuminate\Http\RedirectResponse

eventCreateEvent()

eventCreateEvent(\Illuminate\Http\Request  $request, null  $unit_id = null) : \Illuminate\Http\RedirectResponse

Function for creating an event

Done, working - 20.10.2017 by Bernad

Parameters

\Illuminate\Http\Request $request
null $unit_id

Returns

\Illuminate\Http\RedirectResponse

eventUpdateEvent()

eventUpdateEvent(\Illuminate\Http\Request  $request,   $event_id, null  $unit_id = null) : \Illuminate\Http\RedirectResponse

Function for Updating an event

Done, working - by Volko

Parameters

\Illuminate\Http\Request $request
$event_id
null $unit_id

Returns

\Illuminate\Http\RedirectResponse

eventUpdateEventOption()

eventUpdateEventOption(\Illuminate\Http\Request  $request,   $option_id, null  $unit_id = null) : \Illuminate\Http\RedirectResponse

Function for Updating an event when going to option update

Done, working - by Volko

Parameters

\Illuminate\Http\Request $request
$option_id
null $unit_id

Returns

\Illuminate\Http\RedirectResponse

eventUpdateOption()

eventUpdateOption(\Illuminate\Http\Request  $request,   $option_id, null  $unit_id = null) : \Illuminate\Http\RedirectResponse

Function for Updating an option

Done, working - by Volko

Parameters

\Illuminate\Http\Request $request
$option_id
null $unit_id

Returns

\Illuminate\Http\RedirectResponse

delete()

delete(  $id) : \App\Http\Controllers\other

Function for Deleting an event

Done, working - by Volko

Parameters

$id
  • id of event

Returns

\App\Http\Controllers\other —

function of this Controller

deleteOption()

deleteOption(  $id) : \Illuminate\Http\RedirectResponse

Function for Updating an event

Done, working - by Volko

Parameters

$id
  • id of Option to be deleted

Returns

\Illuminate\Http\RedirectResponse