PHP Class Stevemo\Cpanel\Controllers\PermissionsController

Inheritance: extends BaseController
Show file Open project: stevemo/cpanel

Protected Properties

Property Type Description
$form Stevemo\Cpanel\Permission\Form\PermissionFormInterface
$permissions Stevemo\Cpanel\Permission\Repo\PermissionInterface

Public Methods

Method Description
__construct ( Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions, Stevemo\Cpanel\Permission\Form\PermissionFormInterface $form )
create ( ) : Illuminate\View\View Display new permission form
destroy ( $id ) : Illuminate\Http\RedirectResponse Delete a permission module
edit ( $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View Display the edit permission form
index ( ) : Illuminate\View\View Display all the permissions
store ( ) : Illuminate\Http\RedirectResponse Save new permissions into the database
update ( $id ) : Illuminate\Http\RedirectResponse Process the edit form

Method Details

__construct() public method

public __construct ( Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions, Stevemo\Cpanel\Permission\Form\PermissionFormInterface $form )
$permissions Stevemo\Cpanel\Permission\Repo\PermissionInterface
$form Stevemo\Cpanel\Permission\Form\PermissionFormInterface

create() public method

Display new permission form
Author: Steve Montambeault
public create ( ) : Illuminate\View\View
return Illuminate\View\View

destroy() public method

Delete a permission module
Author: Steve Montambeault
public destroy ( $id ) : Illuminate\Http\RedirectResponse
$id
return Illuminate\Http\RedirectResponse

edit() public method

Display the edit permission form
Author: Steve Montambeault
public edit ( $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View
$id
return Illuminate\Http\RedirectResponse | Illuminate\View\View

index() public method

Display all the permissions
Author: Steve Montambeault
public index ( ) : Illuminate\View\View
return Illuminate\View\View

store() public method

Save new permissions into the database
Author: Steve Montambeault
public store ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse

update() public method

Process the edit form
Author: Steve Montambeault
public update ( $id ) : Illuminate\Http\RedirectResponse
$id
return Illuminate\Http\RedirectResponse

Property Details

$form protected property

protected PermissionFormInterface,Stevemo\Cpanel\Permission\Form $form
return Stevemo\Cpanel\Permission\Form\PermissionFormInterface

$permissions protected property

protected PermissionInterface,Stevemo\Cpanel\Permission\Repo $permissions
return Stevemo\Cpanel\Permission\Repo\PermissionInterface