Свойство | Тип | Описание | |
---|---|---|---|
$loginTokenRepo | Owl\Repositories\LoginTokenRepositoryInterface | ||
$mailNotifyRepo | Owl\Repositories\UserMailNotificationRepositoryInterface | ||
$userRepo | Owl\Repositories\UserRepositoryInterface |
Метод | Описание | |
---|---|---|
__construct ( Owl\Repositories\UserRepositoryInterface $userRepo, Owl\Repositories\LoginTokenRepositoryInterface $loginTokenRepo, Owl\Repositories\UserMailNotificationRepositoryInterface $mailNotifyRepo ) | ||
create ( array $credentials = [] ) : stdclass | Create a new user. | |
getAll ( ) : array | ||
getByEmail ( string $email ) : stdclass | Get a user by email. | |
getById ( integer $id ) : stdclass | Get a user by user id. | |
getByToken ( string $token ) : stdclass | Get a user by login token. | |
getByUsername ( string $username ) : stdclass | Get a user by username. | |
getCurrentUser ( ) : stdclass | ||
getLikeUsername ( string $username ) : stdclass | Get users by username like search. | |
getOwners ( ) : array | ||
getUser ( array $wkey ) : stdClass | Get a user by specified keys. | |
getUsersToArray ( $users ) : array | get users array | |
isOwner ( ) : boolean | ||
update ( integer $id, string $username, string $email, $role ) : stdclass | Update a user information(username, email). | |
updateToken ( integer $userId, string $token ) : boolean | Update the "remember me" token by user ID. |
public __construct ( Owl\Repositories\UserRepositoryInterface $userRepo, Owl\Repositories\LoginTokenRepositoryInterface $loginTokenRepo, Owl\Repositories\UserMailNotificationRepositoryInterface $mailNotifyRepo ) | ||
$userRepo | Owl\Repositories\UserRepositoryInterface | |
$loginTokenRepo | Owl\Repositories\LoginTokenRepositoryInterface | |
$mailNotifyRepo | Owl\Repositories\UserMailNotificationRepositoryInterface |
public getByEmail ( string $email ) : stdclass | ||
string | ||
Результат | stdclass |
public getByToken ( string $token ) : stdclass | ||
$token | string | |
Результат | stdclass | | bool |
public getByUsername ( string $username ) : stdclass | ||
$username | string | |
Результат | stdclass |
public getLikeUsername ( string $username ) : stdclass | ||
$username | string | |
Результат | stdclass |
public getUsersToArray ( $users ) : array | ||
Результат | array |
protected LoginTokenRepositoryInterface,Owl\Repositories $loginTokenRepo | ||
Результат | Owl\Repositories\LoginTokenRepositoryInterface |
protected UserMailNotificationRepositoryInterface,Owl\Repositories $mailNotifyRepo | ||
Результат | Owl\Repositories\UserMailNotificationRepositoryInterface |