PHP Class Stevemo\Cpanel\Controllers\UsersController

Inheritance: extends BaseController
Afficher le fichier Open project: stevemo/cpanel

Protected Properties

Свойство 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

Méthodes publiques

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

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

Display add user form
Author: Steve Montambeault
public create ( ) : Illuminate\View\View
Résultat Illuminate\View\View

destroy() public méthode

Delete a user
Author: Steve Montambeault
public destroy ( integer $id ) : Response
$id integer
Résultat Response

edit() public méthode

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

index() public méthode

Show all the users
Author: Steve Montambeault
public index ( ) : Illuminate\View\View
Résultat Illuminate\View\View

putActivate() public méthode

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

putDeactivate() public méthode

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

show() public méthode

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

store() public méthode

Create a new user
Author: Steve Montambeault
public store ( ) : Response
Résultat Response

update() public méthode

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

Property Details

$groups protected_oe property

protected CpanelGroupInterface,Stevemo\Cpanel\Group\Repo $groups
Résultat Stevemo\Cpanel\Group\Repo\CpanelGroupInterface

$permissions protected_oe property

protected PermissionFormInterface,Stevemo\Cpanel\Permission\Form $permissions
Résultat Stevemo\Cpanel\Permission\Form\PermissionFormInterface

$userForm protected_oe property

protected UserFormInterface,Stevemo\Cpanel\User\Form $userForm
Résultat Stevemo\Cpanel\User\Form\UserFormInterface

$users protected_oe property

protected CpanelUserInterface,Stevemo\Cpanel\User\Repo $users
Résultat Stevemo\Cpanel\User\Repo\CpanelUserInterface