\App\Http\ControllersProjectController

Class ProjectController

Summary

Methods
Properties
Constants
update()
showEditProjectView()
newProject()
showProjects()
showViewProjectView()
deleteProject()
postNames()
detachPost()
deleteFolder()
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

update()

update(  $id, \Illuminate\Http\Request  $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Updates Project name and its folders

Parameters

$id
\Illuminate\Http\Request $request

containing the information needed

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector —

to the updated project

showEditProjectView()

showEditProjectView(  $id) : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Edit project view.

Parameters

$id

of the project to edit

Returns

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

newProject()

newProject(\Illuminate\Http\Request  $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Create a new Project

Parameters

\Illuminate\Http\Request $request

containg the name

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector —

to the projects page

showProjects()

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

returns view containing all projects

Returns

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

showViewProjectView()

showViewProjectView(  $id) : \Illuminate\Contracts\View\Factory|\Illuminate\View\View

Show a specific project

Parameters

$id

of the project

Returns

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

deleteProject()

deleteProject(  $id, \Illuminate\Http\Request  $request) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Delete a project and it's folders

Parameters

$id

of the project

\Illuminate\Http\Request $request

for showing the information

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector —

to the projects page

postNames()

postNames() : array

Returns

array —

of all post names

detachPost()

detachPost(\App\Folder  $folder, \App\Post  $post) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Detach a Post form a Folder

Parameters

\App\Folder $folder

parent folder of the post

\App\Post $post

post to detach from the folder

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector —

back tot the edit page

deleteFolder()

deleteFolder(\App\Folder  $folder) : \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector

Delete a folder by id

Parameters

\App\Folder $folder

to delete

Throws

\Exception

Returns

\Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector