PHP Class Xpressengine\User\Models\User

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Database\Eloquent\DynamicModel, implements Xpressengine\User\UserInterface
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Méthodes publiques

Свойство Type Description
$displayField getDisplayName()메소드가 실행될 때 사용할 필드
$incrementing

Protected Properties

Свойство Type Description
$connection
$dates
$dynamic use dynamic query
$emailForPasswordReset 비밀번호 초기화 요청을 처리할 때, 입력된 이메일을 저장함
$fillable
$hidden
$profileImageResolver 회원의 프로필 이미지 Resolver. 프로필 이미지 아이디에 해당하는 프로필 이미지 URL을 반환한다.
$table

Méthodes publiques

Méthode Description
__construct ( array $attributes = [] ) User constructor.
accounts ( ) : Illuminate\Database\Eloquent\Relations\HasMany set relationship with user accounts
emails ( ) : Illuminate\Database\Eloquent\Relations\HasMany set relationship with emails
getAccountByProvider ( string $provider ) : UserAccount 회원이 소유한 계정 중에 주어진 provider를 가진 계정을 반환한다.
getAuthIdentifier ( ) : mixed Get the unique identifier for the user.
getAuthPassword ( ) : string Get the password for the user.
getDisplayName ( ) : string Get the name for display
getEmailForPasswordReset ( ) : string Get the e-mail address where password reset links are sent.
getGroups ( ) : array Get groups a user belongs
getId ( ) : string Get the unique identifier
getPendingEmail ( ) : PendingEmail Get Pending Email of current user
getProfileImage ( ) : string Get profile image URL of user
getRating ( ) : string Get the rating of user
getRememberToken ( ) : string Get the token value for the "remember me" session.
getRememberTokenName ( ) : string Get the column name for the "remember me" token.
getStatus ( ) : string Get the status of user
groups ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany set relationship with user groups
isAdmin ( ) : boolean Finds whether user has super rating.
isManager ( ) : boolean Finds whether user has manager or super rating.
joinGroups ( mixed $groups ) : static add this user to groups
leaveGroups ( array $groups ) : static leave groups
pendingEmail ( ) : Illuminate\Database\Eloquent\Relations\HasOne set relationship with pendingEmail
setEmailForPasswordReset ( string $email ) : void setEmailForPasswordReset() 메소드에서 반환할 email 정보를 지정한다.
setProfileImageResolver ( Closure $callback ) : void setProfileImageResolver
setRememberToken ( string $value ) : void Set the token value for the "remember me" session.

Method Details

__construct() public méthode

User constructor.
public __construct ( array $attributes = [] )
$attributes array attributes

accounts() public méthode

set relationship with user accounts
public accounts ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

emails() public méthode

set relationship with emails
public emails ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

getAccountByProvider() public méthode

회원이 소유한 계정 중에 주어진 provider를 가진 계정을 반환한다.
public getAccountByProvider ( string $provider ) : UserAccount
$provider string provider
Résultat UserAccount

getAuthIdentifier() public méthode

Get the unique identifier for the user.
public getAuthIdentifier ( ) : mixed
Résultat mixed

getAuthPassword() public méthode

Get the password for the user.
public getAuthPassword ( ) : string
Résultat string

getDisplayName() public méthode

Get the name for display
public getDisplayName ( ) : string
Résultat string

getEmailForPasswordReset() public méthode

Get the e-mail address where password reset links are sent.
public getEmailForPasswordReset ( ) : string
Résultat string

getGroups() public méthode

Get groups a user belongs
public getGroups ( ) : array
Résultat array

getId() public méthode

Get the unique identifier
public getId ( ) : string
Résultat string

getPendingEmail() public méthode

Get Pending Email of current user
public getPendingEmail ( ) : PendingEmail
Résultat PendingEmail

getProfileImage() public méthode

Get profile image URL of user
public getProfileImage ( ) : string
Résultat string

getRating() public méthode

Get the rating of user
public getRating ( ) : string
Résultat string

getRememberToken() public méthode

Get the token value for the "remember me" session.
public getRememberToken ( ) : string
Résultat string

getRememberTokenName() public méthode

Get the column name for the "remember me" token.
public getRememberTokenName ( ) : string
Résultat string

getStatus() public méthode

Get the status of user
public getStatus ( ) : string
Résultat string

groups() public méthode

set relationship with user groups
public groups ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

isAdmin() public méthode

Finds whether user has super rating.
public isAdmin ( ) : boolean
Résultat boolean

isManager() public méthode

Finds whether user has manager or super rating.
public isManager ( ) : boolean
Résultat boolean

joinGroups() public méthode

add this user to groups
public joinGroups ( mixed $groups ) : static
$groups mixed groups
Résultat static

leaveGroups() public méthode

leave groups
public leaveGroups ( array $groups ) : static
$groups array groups
Résultat static

pendingEmail() public méthode

set relationship with pendingEmail
public pendingEmail ( ) : Illuminate\Database\Eloquent\Relations\HasOne
Résultat Illuminate\Database\Eloquent\Relations\HasOne

setEmailForPasswordReset() public méthode

setEmailForPasswordReset() 메소드에서 반환할 email 정보를 지정한다.
public setEmailForPasswordReset ( string $email ) : void
$email string 지정할 email주소
Résultat void

setProfileImageResolver() public static méthode

setProfileImageResolver
public static setProfileImageResolver ( Closure $callback ) : void
$callback Closure 회원의 프로필 이미지를 처리하기 위한 resolver
Résultat void

setRememberToken() public méthode

Set the token value for the "remember me" session.
public setRememberToken ( string $value ) : void
$value string value
Résultat void

Property Details

$connection protected_oe property

protected $connection

$dates protected_oe property

protected $dates

$displayField public_oe static_oe property

getDisplayName()메소드가 실행될 때 사용할 필드
public static $displayField

$dynamic protected_oe property

use dynamic query
protected $dynamic

$emailForPasswordReset protected_oe property

비밀번호 초기화 요청을 처리할 때, 입력된 이메일을 저장함
protected $emailForPasswordReset

$fillable protected_oe property

protected $fillable

$hidden protected_oe property

protected $hidden

$incrementing public_oe property

public $incrementing

$profileImageResolver protected_oe static_oe property

회원의 프로필 이미지 Resolver. 프로필 이미지 아이디에 해당하는 프로필 이미지 URL을 반환한다.
protected static $profileImageResolver

$table protected_oe property

protected $table