PHP 클래스 Webiny\Component\OAuth2\OAuth2User

This class is returned when you request user details form an OAuth2 server. This class standardizes the data that you get back because every OAuth2 server has its own user structure.
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$avatarUrl string
$email string
$firstName string
$gender integer
$lastName string
$lastUpdated integer
$profileId string
$profileUrl string
$serviceName integer
$username string

공개 메소드들

메소드 설명
__construct ( string $username, string $email ) Base constructor.
getAvatarUrl ( ) : string Get the url to users avatar on the OAuth2 server.
getFirstName ( ) : string Get users first name.
getGender ( ) : string Get users gender.
getLastName ( ) : string Get users last name.
getLastUpdateTime ( ) : integer Get the date when user last updated his profile on the OAuth2 server.
getProfileId ( ) : string Get user profile id on the current OAuth2 server.
getProfileUrl ( ) : string Returns the url to users profile on the OAuth2 server.
getServiceName ( ) : string Returns the name of the current OAuth2 server (like facebook, linkedin etc.).
setAvatarUrl ( string $avatarUrl ) Set the url to users avatar on the current OAuth2 server.
setFirstName ( string $firstName ) Set users first name.
setGender ( $gender ) Set the gender of the user, can be 'male' or 'female'.
setLastName ( $lastName ) Set users last name.
setLastUpdateTime ( integer $timestamp ) Set the date when user last updated his profile on the OAuth2 server.
setProfileId ( string $id ) Set the id of user of the current OAuth2 server.
setProfileUrl ( string $profileUrl ) Set the url of users profile on the current OAuth2 server.
setServiceName ( string $serviceName ) Set the service name that user used to login (like facebook, linkedin etc.)

메소드 상세

__construct() 공개 메소드

Base constructor.
public __construct ( string $username, string $email )
$username string Users username.
$email string Users email.

getAvatarUrl() 공개 메소드

Get the url to users avatar on the OAuth2 server.
public getAvatarUrl ( ) : string
리턴 string

getFirstName() 공개 메소드

Get users first name.
public getFirstName ( ) : string
리턴 string

getGender() 공개 메소드

Get users gender.
public getGender ( ) : string
리턴 string

getLastName() 공개 메소드

Get users last name.
public getLastName ( ) : string
리턴 string

getLastUpdateTime() 공개 메소드

Get the date when user last updated his profile on the OAuth2 server.
public getLastUpdateTime ( ) : integer
리턴 integer Timestamp in milliseconds.

getProfileId() 공개 메소드

Get user profile id on the current OAuth2 server.
public getProfileId ( ) : string
리턴 string

getProfileUrl() 공개 메소드

Returns the url to users profile on the OAuth2 server.
public getProfileUrl ( ) : string
리턴 string

getServiceName() 공개 메소드

Returns the name of the current OAuth2 server (like facebook, linkedin etc.).
public getServiceName ( ) : string
리턴 string

setAvatarUrl() 공개 메소드

Set the url to users avatar on the current OAuth2 server.
public setAvatarUrl ( string $avatarUrl )
$avatarUrl string

setFirstName() 공개 메소드

Set users first name.
public setFirstName ( string $firstName )
$firstName string

setGender() 공개 메소드

Set the gender of the user, can be 'male' or 'female'.
public setGender ( $gender )
$gender

setLastName() 공개 메소드

Set users last name.
public setLastName ( $lastName )
$lastName

setLastUpdateTime() 공개 메소드

Set the date when user last updated his profile on the OAuth2 server.
public setLastUpdateTime ( integer $timestamp )
$timestamp integer Timestamp in milliseconds.

setProfileId() 공개 메소드

Set the id of user of the current OAuth2 server.
public setProfileId ( string $id )
$id string

setProfileUrl() 공개 메소드

Set the url of users profile on the current OAuth2 server.
public setProfileUrl ( string $profileUrl )
$profileUrl string

setServiceName() 공개 메소드

Set the service name that user used to login (like facebook, linkedin etc.)
public setServiceName ( string $serviceName )
$serviceName string

프로퍼티 상세

$avatarUrl 공개적으로 프로퍼티

public string $avatarUrl
리턴 string

$email 공개적으로 프로퍼티

public string $email
리턴 string

$firstName 공개적으로 프로퍼티

public string $firstName
리턴 string

$gender 공개적으로 프로퍼티

public int $gender
리턴 integer

$lastName 공개적으로 프로퍼티

public string $lastName
리턴 string

$lastUpdated 공개적으로 프로퍼티

public int $lastUpdated
리턴 integer

$profileId 공개적으로 프로퍼티

public string $profileId
리턴 string

$profileUrl 공개적으로 프로퍼티

public string $profileUrl
리턴 string

$serviceName 공개적으로 프로퍼티

public int $serviceName
리턴 integer

$username 공개적으로 프로퍼티

public string $username
리턴 string