PHP Class Stevemo\Cpanel\Controllers\UsersThrottlingController

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

Public Methods

Method Description
__construct ( Stevemo\Cpanel\User\Repo\CpanelUserInterface $users )
getStatus ( integer $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View Show the user Throttling status
putStatus ( $id, $action ) : Illuminate\Http\RedirectResponse Update the throttle status for a given user

Method Details

__construct() public method

public __construct ( Stevemo\Cpanel\User\Repo\CpanelUserInterface $users )
$users Stevemo\Cpanel\User\Repo\CpanelUserInterface

getStatus() public method

Show the user Throttling status
Author: Steve Montambeault
public getStatus ( integer $id ) : Illuminate\Http\RedirectResponse | Illuminate\View\View
$id integer
return Illuminate\Http\RedirectResponse | Illuminate\View\View

putStatus() public method

Update the throttle status for a given user
Author: Steve Montambeault
public putStatus ( $id, $action ) : Illuminate\Http\RedirectResponse
$id
$action
return Illuminate\Http\RedirectResponse