PHP Class BookStack\Http\Controllers\PermissionController

Inheritance: extends Controller
Show file Open project: ssddanbrown/bookstack

Protected Properties

Property Type Description
$permissionsRepo

Public Methods

Method Description
__construct ( PermissionsRepo $permissionsRepo ) PermissionController constructor.
createRole ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Show the form to create a new role
deleteRole ( $id, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector Delete a role from the system, Migrate from a previous role if set.
editRole ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Show the form for editing a user role.
listRoles ( ) Show a listing of the roles in the system.
showDeleteRole ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Show the view to delete a role.
storeRole ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector Store a new role in the system.
updateRole ( $id, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector Updates a user role.

Method Details

__construct() public method

PermissionController constructor.
public __construct ( PermissionsRepo $permissionsRepo )
$permissionsRepo BookStack\Repos\PermissionsRepo

createRole() public method

Show the form to create a new role
public createRole ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
return Illuminate\Contracts\View\Factory | Illuminate\View\View

deleteRole() public method

Delete a role from the system, Migrate from a previous role if set.
public deleteRole ( $id, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$id
$request Illuminate\Http\Request
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

editRole() public method

Show the form for editing a user role.
public editRole ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$id
return Illuminate\Contracts\View\Factory | Illuminate\View\View

listRoles() public method

Show a listing of the roles in the system.
public listRoles ( )

showDeleteRole() public method

Offers the chance to migrate users.
public showDeleteRole ( $id ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$id
return Illuminate\Contracts\View\Factory | Illuminate\View\View

storeRole() public method

Store a new role in the system.
public storeRole ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$request Illuminate\Http\Request
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

updateRole() public method

Updates a user role.
public updateRole ( $id, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$id
$request Illuminate\Http\Request
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

Property Details

$permissionsRepo protected property

protected $permissionsRepo