Метод |
Описание |
|
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 | Cartalyst\Sentry\Users\UserInterface |
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 |
|
|