PHP Класс Owl\Repositories\Eloquent\UserRepository

Наследование: implements Owl\Repositories\UserRepositoryInterface
Показать файл Открыть проект

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

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