PHP 클래스 Owl\Repositories\Eloquent\UserRepository

상속: implements Owl\Repositories\UserRepositoryInterface
파일 보기 프로젝트 열기: owl/owl

보호된 프로퍼티들

프로퍼티 타입 설명
$user

공개 메소드들

메소드 설명
__construct ( User $user )
create ( mixed $credentials ) : Illuminate\Database\Eloquent\Model Create a new user.
getAll ( ) : Illuminate\Database\Eloquent\Collection Get all user data.
getByEmail ( string $email ) : Illuminate\Database\Eloquent\Model Get a user by email.
getById ( integer $id ) : Illuminate\Database\Eloquent\Model Get a user by user id.
getByUsername ( string $username ) : Illuminate\Database\Eloquent\Model Get a user by username.
getLikeUsername ( string $username ) : Illuminate\Database\Eloquent\Model Get users by username like search.
getOwners ( ) : Illuminate\Database\Eloquent\Model Get users which role is owner.
getUsersToArray ( $users ) : array get users array
updateUser ( integer $id, string $username, string $email, $role ) : Illuminate\Database\Eloquent\Model Update a user information(username, email, role).

메소드 상세

__construct() 공개 메소드

public __construct ( User $user )
$user Owl\Repositories\Eloquent\Models\User

create() 공개 메소드

Create a new user.
public create ( mixed $credentials ) : Illuminate\Database\Eloquent\Model
$credentials mixed (email, username, password, role)
리턴 Illuminate\Database\Eloquent\Model

getAll() 공개 메소드

Get all user data.
public getAll ( ) : Illuminate\Database\Eloquent\Collection
리턴 Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Builder

getByEmail() 공개 메소드

Get a user by email.
public getByEmail ( string $email ) : Illuminate\Database\Eloquent\Model
$email string
리턴 Illuminate\Database\Eloquent\Model

getById() 공개 메소드

Get a user by user id.
public getById ( integer $id ) : Illuminate\Database\Eloquent\Model
$id integer
리턴 Illuminate\Database\Eloquent\Model

getByUsername() 공개 메소드

Get a user by username.
public getByUsername ( string $username ) : Illuminate\Database\Eloquent\Model
$username string
리턴 Illuminate\Database\Eloquent\Model

getLikeUsername() 공개 메소드

Get users by username like search.
public getLikeUsername ( string $username ) : Illuminate\Database\Eloquent\Model
$username string
리턴 Illuminate\Database\Eloquent\Model

getOwners() 공개 메소드

Get users which role is owner.
public getOwners ( ) : Illuminate\Database\Eloquent\Model
리턴 Illuminate\Database\Eloquent\Model

getUsersToArray() 공개 메소드

get users array
public getUsersToArray ( $users ) : array
리턴 array

updateUser() 공개 메소드

Update a user information(username, email, role).
public updateUser ( integer $id, string $username, string $email, $role ) : Illuminate\Database\Eloquent\Model
$id integer
$username string
$email string
리턴 Illuminate\Database\Eloquent\Model

프로퍼티 상세

$user 보호되어 있는 프로퍼티

protected $user