Свойство | Тип | Описание | |
---|---|---|---|
$event | Illuminate\Events\Dispatcher | ||
$sentry | Cartalyst\Sentry\Sentry |
Метод | Описание | |
---|---|---|
__construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Events\Dispatcher $event ) | ||
activate ( $id ) : boolean | Activate a user | |
authenticate ( array $credentials, boolean $remember = false ) : Cartalyst\Sentry\Users\UserInterface | Attempts to authenticate the given user according to the passed credentials. | |
check ( ) : boolean | Check to see if the user is logged in and activated, and hasn't been banned or suspended. | |
create ( array $credentials, boolean $activate = false ) : Cartalyst\Sentry\Users\UserInterface | Create a new user | |
deactivate ( $id ) : boolean | De activate a user | |
delete ( integer $id ) : void | Delete the user | |
findAll ( ) : array | Returns an all users. | |
findById ( $id ) : Cartalyst\Sentry\Users\UserInterface | Finds a user by the given user ID. | |
findByLogin ( $login ) : Cartalyst\Sentry\Users\UserInterface | Find a given user by the login attribute | |
getEmptyUser ( ) : StdClass | Returns an empty user object. | |
getUser ( ) : mixed | Returns the current user being used by Sentry, if any. | |
getUserThrottle ( $id ) : Cartalyst\Sentry\Throttling\ThrottleInterface | Get the throttle provider for a given user | |
logout ( ) : void | Logs the current user out. | |
register ( array $credentials, boolean $activate = false ) : Cartalyst\Sentry\Users\UserInterface | Registers a user by giving the required credentials and an optional flag for whether to activate the user. | |
resetPassword ( $code, $password ) : Cartalyst\Sentry\Users\UserInterface | Reset a given user password | |
update ( $id, array $attributes ) : Cartalyst\Sentry\Users\UserInterface | Update user information | |
updatePermissions ( integer $id, array $permissions ) : Cartalyst\Sentry\Users\UserInterface | Update permissions for a given user | |
updateThrottleStatus ( $id, $status ) : void |
Метод | Описание | |
---|---|---|
storeUser ( array $credentials, boolean $activate = false ) : Cartalyst\Sentry\Users\UserInterface | Create user into storage | |
syncGroups ( array $groups, Cartalyst\Sentry\Users\UserInterface $user ) | Add groups to a user |
public __construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Events\Dispatcher $event ) | ||
$sentry | Cartalyst\Sentry\Sentry | |
$event | Illuminate\Events\Dispatcher |
public authenticate ( array $credentials, boolean $remember = false ) : Cartalyst\Sentry\Users\UserInterface | ||
$credentials | array | |
$remember | boolean | |
Результат | Cartalyst\Sentry\Users\UserInterface |
public deactivate ( $id ) : boolean | ||
$id | ||
Результат | boolean |
public findById ( $id ) : Cartalyst\Sentry\Users\UserInterface | ||
$id | ||
Результат | Cartalyst\Sentry\Users\UserInterface |
public findByLogin ( $login ) : Cartalyst\Sentry\Users\UserInterface | ||
$login | ||
Результат | Cartalyst\Sentry\Users\UserInterface |
public getEmptyUser ( ) : StdClass | ||
Результат | StdClass |
public getUserThrottle ( $id ) : Cartalyst\Sentry\Throttling\ThrottleInterface | ||
$id | ||
Результат | Cartalyst\Sentry\Throttling\ThrottleInterface |
public resetPassword ( $code, $password ) : Cartalyst\Sentry\Users\UserInterface | ||
$code | ||
$password | ||
Результат | Cartalyst\Sentry\Users\UserInterface |
protected syncGroups ( array $groups, Cartalyst\Sentry\Users\UserInterface $user ) | ||
$groups | array | |
$user | Cartalyst\Sentry\Users\UserInterface |
public updatePermissions ( integer $id, array $permissions ) : Cartalyst\Sentry\Users\UserInterface | ||
$id | integer | |
$permissions | array | |
Результат | Cartalyst\Sentry\Users\UserInterface |
public updateThrottleStatus ( $id, $status ) : void | ||
$id | ||
$status | ||
Результат | void |
protected Dispatcher,Illuminate\Events $event | ||
Результат | Illuminate\Events\Dispatcher |