PHP Class Stevemo\Cpanel\Controllers\UsersController

Inheritance: extends BaseController
Datei anzeigen Open project: stevemo/cpanel

Protected Properties

Property Type Description
$groups Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
$permissions Stevemo\Cpanel\Permission\Form\PermissionFormInterface
$userForm Stevemo\Cpanel\User\Form\UserFormInterface
$users Stevemo\Cpanel\User\Repo\CpanelUserInterface

Public Methods

Method Description
__construct ( Stevemo\Cpanel\User\Repo\CpanelUserInterface $users, Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions, Stevemo\Cpanel\Group\Repo\CpanelGroupInterface $groups, Stevemo\Cpanel\User\Form\UserFormInterface $userForm )
create ( ) : Illuminate\View\View Display add user form
destroy ( integer $id ) : Response Delete a user
edit ( integer $id ) : Illuminate\Http\RedirectResponse Display the user edit form
index ( ) : Illuminate\View\View Show all the users
putActivate ( $id ) : Illuminate\Http\RedirectResponse Activate a user
putDeactivate ( $id ) : Illuminate\Http\RedirectResponse deactivate a user
show ( integer $id ) : Response Show a user profile
store ( ) : Response Create a new user
update ( integer $id ) : Illuminate\Http\RedirectResponse Update user information

Method Details

__construct() public method

public __construct ( Stevemo\Cpanel\User\Repo\CpanelUserInterface $users, Stevemo\Cpanel\Permission\Repo\PermissionInterface $permissions, Stevemo\Cpanel\Group\Repo\CpanelGroupInterface $groups, Stevemo\Cpanel\User\Form\UserFormInterface $userForm )
$users Stevemo\Cpanel\User\Repo\CpanelUserInterface
$permissions Stevemo\Cpanel\Permission\Repo\PermissionInterface
$groups Stevemo\Cpanel\Group\Repo\CpanelGroupInterface
$userForm Stevemo\Cpanel\User\Form\UserFormInterface

create() public method

Display add user form
Author: Steve Montambeault
public create ( ) : Illuminate\View\View
return Illuminate\View\View

destroy() public method

Delete a user
Author: Steve Montambeault
public destroy ( integer $id ) : Response
$id integer
return Response

edit() public method

Display the user edit form
Author: Steve Montambeault
public edit ( integer $id ) : Illuminate\Http\RedirectResponse
$id integer
return Illuminate\Http\RedirectResponse

index() public method

Show all the users
Author: Steve Montambeault
public index ( ) : Illuminate\View\View
return Illuminate\View\View

putActivate() public method

Activate a user
Author: Steve Montambeault
public putActivate ( $id ) : Illuminate\Http\RedirectResponse
$id
return Illuminate\Http\RedirectResponse

putDeactivate() public method

deactivate a user
Author: Steve Montambeault
public putDeactivate ( $id ) : Illuminate\Http\RedirectResponse
$id
return Illuminate\Http\RedirectResponse

show() public method

Show a user profile
Author: Steve Montambeault
public show ( integer $id ) : Response
$id integer
return Response

store() public method

Create a new user
Author: Steve Montambeault
public store ( ) : Response
return Response

update() public method

Update user information
Author: Steve Montambeault
public update ( integer $id ) : Illuminate\Http\RedirectResponse
$id integer
return Illuminate\Http\RedirectResponse

Property Details

$groups protected_oe property

protected CpanelGroupInterface,Stevemo\Cpanel\Group\Repo $groups
return Stevemo\Cpanel\Group\Repo\CpanelGroupInterface

$permissions protected_oe property

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

$userForm protected_oe property

protected UserFormInterface,Stevemo\Cpanel\User\Form $userForm
return Stevemo\Cpanel\User\Form\UserFormInterface

$users protected_oe property

protected CpanelUserInterface,Stevemo\Cpanel\User\Repo $users
return Stevemo\Cpanel\User\Repo\CpanelUserInterface