PHP 클래스 Stevemo\Cpanel\User\Repo\UserRepository

상속: implements Stevemo\Cpanel\User\Repo\CpanelUserInterface
파일 보기 프로젝트 열기: stevemo/cpanel

보호된 프로퍼티들

프로퍼티 타입 설명
$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