PHP 클래스 Frontend\Core\Engine\User

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer $userId = null )
getBackendUser ( integer $userId ) : User Get a backend user
getEmail ( ) : string Get email
getSetting ( string $key ) : mixed Get a setting
getSettings ( ) : array Get all settings at once
getUserId ( ) : integer Get user id
loadUser ( integer $userId ) Load the data for the given user

비공개 메소드들

메소드 설명
setEmail ( string $value ) Set email
setUserId ( integer $value ) Set user id

메소드 상세

__construct() 공개 메소드

public __construct ( integer $userId = null )
$userId integer If you provide a userId, the object will be loaded with the data for this user.

getBackendUser() 공개 정적인 메소드

Get a backend user
public static getBackendUser ( integer $userId ) : User
$userId integer The users id in the backend.
리턴 User

getEmail() 공개 메소드

Get email
public getEmail ( ) : string
리턴 string

getSetting() 공개 메소드

Get a setting
public getSetting ( string $key ) : mixed
$key string The name of the setting.
리턴 mixed The stored value, if the setting wasn't found null will be returned

getSettings() 공개 메소드

Get all settings at once
public getSettings ( ) : array
리턴 array An key-value-array with all settings for this user.

getUserId() 공개 메소드

Get user id
public getUserId ( ) : integer
리턴 integer

loadUser() 공개 메소드

Load the data for the given user
public loadUser ( integer $userId )
$userId integer The users id in the backend.