PHP Класс Xpressengine\User\Models\User

Автор: XE Developers ([email protected])
Наследование: extends Xpressengine\Database\Eloquent\DynamicModel, implements Xpressengine\User\UserInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$displayField getDisplayName()메소드가 실행될 때 사용할 필드
$incrementing

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

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

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

accounts() публичный Метод

set relationship with user accounts
public accounts ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

emails() публичный Метод

set relationship with emails
public emails ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

getAccountByProvider() публичный Метод

회원이 소유한 계정 중에 주어진 provider를 가진 계정을 반환한다.
public getAccountByProvider ( string $provider ) : UserAccount
$provider string provider
Результат UserAccount

getAuthIdentifier() публичный Метод

Get the unique identifier for the user.
public getAuthIdentifier ( ) : mixed
Результат mixed

getAuthPassword() публичный Метод

Get the password for the user.
public getAuthPassword ( ) : string
Результат string

getDisplayName() публичный Метод

Get the name for display
public getDisplayName ( ) : string
Результат string

getEmailForPasswordReset() публичный Метод

Get the e-mail address where password reset links are sent.
public getEmailForPasswordReset ( ) : string
Результат string

getGroups() публичный Метод

Get groups a user belongs
public getGroups ( ) : array
Результат array

getId() публичный Метод

Get the unique identifier
public getId ( ) : string
Результат string

getPendingEmail() публичный Метод

Get Pending Email of current user
public getPendingEmail ( ) : PendingEmail
Результат PendingEmail

getProfileImage() публичный Метод

Get profile image URL of user
public getProfileImage ( ) : string
Результат string

getRating() публичный Метод

Get the rating of user
public getRating ( ) : string
Результат string

getRememberToken() публичный Метод

Get the token value for the "remember me" session.
public getRememberToken ( ) : string
Результат string

getRememberTokenName() публичный Метод

Get the column name for the "remember me" token.
public getRememberTokenName ( ) : string
Результат string

getStatus() публичный Метод

Get the status of user
public getStatus ( ) : string
Результат string

groups() публичный Метод

set relationship with user groups
public groups ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Результат Illuminate\Database\Eloquent\Relations\BelongsToMany

isAdmin() публичный Метод

Finds whether user has super rating.
public isAdmin ( ) : boolean
Результат boolean

isManager() публичный Метод

Finds whether user has manager or super rating.
public isManager ( ) : boolean
Результат boolean

joinGroups() публичный Метод

add this user to groups
public joinGroups ( mixed $groups ) : static
$groups mixed groups
Результат static

leaveGroups() публичный Метод

leave groups
public leaveGroups ( array $groups ) : static
$groups array groups
Результат static

pendingEmail() публичный Метод

set relationship with pendingEmail
public pendingEmail ( ) : Illuminate\Database\Eloquent\Relations\HasOne
Результат Illuminate\Database\Eloquent\Relations\HasOne

setEmailForPasswordReset() публичный Метод

setEmailForPasswordReset() 메소드에서 반환할 email 정보를 지정한다.
public setEmailForPasswordReset ( string $email ) : void
$email string 지정할 email주소
Результат void

setProfileImageResolver() публичный статический Метод

setProfileImageResolver
public static setProfileImageResolver ( Closure $callback ) : void
$callback Closure 회원의 프로필 이미지를 처리하기 위한 resolver
Результат void

setRememberToken() публичный Метод

Set the token value for the "remember me" session.
public setRememberToken ( string $value ) : void
$value string value
Результат void

Описание свойств

$connection защищенное свойство

protected $connection

$dates защищенное свойство

protected $dates

$displayField публичное статическое свойство

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

$dynamic защищенное свойство

use dynamic query
protected $dynamic

$emailForPasswordReset защищенное свойство

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

$fillable защищенное свойство

protected $fillable

$hidden защищенное свойство

protected $hidden

$incrementing публичное свойство

public $incrementing

$profileImageResolver защищенное статическое свойство

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

$table защищенное свойство

protected $table