PHP Class BookStack\Http\Controllers\PermissionController

Inheritance: extends Controller
Afficher le fichier Open project: ssddanbrown/bookstack

Protected Properties

Свойство Type Description
$permissionsRepo

Méthodes publiques

Méthode 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 méthode

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

createRole() public méthode

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

deleteRole() public méthode

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
Résultat Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

editRole() public méthode

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

listRoles() public méthode

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

showDeleteRole() public méthode

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

storeRole() public méthode

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

updateRole() public méthode

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

Property Details

$permissionsRepo protected_oe property

protected $permissionsRepo