PHP Класс Stevemo\Cpanel\User\Repo\UserRepository

Наследование: implements Stevemo\Cpanel\User\Repo\CpanelUserInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Описание методов

__construct() публичный Метод

public __construct ( Cartalyst\Sentry\Sentry $sentry, Illuminate\Events\Dispatcher $event )
$sentry Cartalyst\Sentry\Sentry
$event Illuminate\Events\Dispatcher

activate() публичный Метод

Activate a user
Автор: Steve Montambeault
public activate ( $id ) : boolean
$id
Результат boolean

authenticate() публичный Метод

Attempts to authenticate the given user according to the passed credentials.
Автор: Steve Montambeault
public authenticate ( array $credentials, boolean $remember = false ) : Cartalyst\Sentry\Users\UserInterface
$credentials array
$remember boolean
Результат Cartalyst\Sentry\Users\UserInterface

check() публичный Метод

Check to see if the user is logged in and activated, and hasn't been banned or suspended.
Автор: Steve Montambeault
public check ( ) : boolean
Результат boolean

create() публичный Метод

Create a new user
Автор: Steve Montambeault
public create ( array $credentials, boolean $activate = false ) : Cartalyst\Sentry\Users\UserInterface
$credentials array
$activate boolean
Результат Cartalyst\Sentry\Users\UserInterface

deactivate() публичный Метод

De activate a user
Автор: Steve Montambeault
public deactivate ( $id ) : boolean
$id
Результат boolean

delete() публичный Метод

Delete the user
Автор: Steve Montambeault
public delete ( integer $id ) : void
$id integer
Результат void

findAll() публичный Метод

Returns an all users.
Автор: Steve Montambeault
public findAll ( ) : array
Результат array

findById() публичный Метод

Finds a user by the given user ID.
Автор: Steve Montambeault
public findById ( $id ) : Cartalyst\Sentry\Users\UserInterface
$id
Результат Cartalyst\Sentry\Users\UserInterface

findByLogin() публичный Метод

Find a given user by the login attribute
Автор: Steve Montambeault
public findByLogin ( $login ) : Cartalyst\Sentry\Users\UserInterface
$login
Результат Cartalyst\Sentry\Users\UserInterface

getEmptyUser() публичный Метод

Returns an empty user object.
Автор: Steve Montambeault
public getEmptyUser ( ) : StdClass
Результат StdClass

getUser() публичный Метод

Returns the current user being used by Sentry, if any.
Автор: Steve Montambeault
public getUser ( ) : mixed
Результат mixed

getUserThrottle() публичный Метод

Get the throttle provider for a given user
Автор: Steve Montambeault
public getUserThrottle ( $id ) : Cartalyst\Sentry\Throttling\ThrottleInterface
$id
Результат Cartalyst\Sentry\Throttling\ThrottleInterface

logout() публичный Метод

Logs the current user out.
Автор: Steve Montambeault
public logout ( ) : void
Результат void

register() публичный Метод

Registers a user by giving the required credentials and an optional flag for whether to activate the user.
Автор: Steve Montambeault
public register ( array $credentials, boolean $activate = false ) : Cartalyst\Sentry\Users\UserInterface
$credentials array
$activate boolean
Результат Cartalyst\Sentry\Users\UserInterface

resetPassword() публичный Метод

Reset a given user password
Автор: Steve Montambeault
public resetPassword ( $code, $password ) : Cartalyst\Sentry\Users\UserInterface
$code
$password
Результат Cartalyst\Sentry\Users\UserInterface

storeUser() защищенный Метод

Create user into storage
Автор: Steve Montambeault
protected storeUser ( array $credentials, boolean $activate = false ) : Cartalyst\Sentry\Users\UserInterface
$credentials array
$activate boolean
Результат Cartalyst\Sentry\Users\UserInterface

syncGroups() защищенный Метод

Add groups to a user
Автор: Steve Montambeault
protected syncGroups ( array $groups, Cartalyst\Sentry\Users\UserInterface $user )
$groups array
$user Cartalyst\Sentry\Users\UserInterface

update() публичный Метод

Update user information
Автор: Steve Montambeault
public update ( $id, array $attributes ) : Cartalyst\Sentry\Users\UserInterface
$id
$attributes array
Результат Cartalyst\Sentry\Users\UserInterface

updatePermissions() публичный Метод

Update permissions for a given user
Автор: Steve Montambeault
public updatePermissions ( integer $id, array $permissions ) : Cartalyst\Sentry\Users\UserInterface
$id integer
$permissions array
Результат Cartalyst\Sentry\Users\UserInterface

updateThrottleStatus() публичный Метод

Автор: Steve Montambeault
public updateThrottleStatus ( $id, $status ) : void
$id
$status
Результат void

Описание свойств

$event защищенное свойство

protected Dispatcher,Illuminate\Events $event
Результат Illuminate\Events\Dispatcher

$sentry защищенное свойство

protected Sentry,Cartalyst\Sentry $sentry
Результат Cartalyst\Sentry\Sentry