프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
protected LoginTokenRepositoryInterface,Owl\Repositories $loginTokenRepo | ||
리턴 | Owl\Repositories\LoginTokenRepositoryInterface |
protected UserMailNotificationRepositoryInterface,Owl\Repositories $mailNotifyRepo | ||
리턴 | Owl\Repositories\UserMailNotificationRepositoryInterface |