PHP 클래스 RainLab\User\Components\Account

상속: extends Cms\Classes\ComponentBase
파일 보기 프로젝트 열기: rainlab/user-plugin 1 사용 예제들

공개 메소드들

메소드 설명
componentDetails ( )
defineProperties ( )
getRedirectOptions ( )
loginAttribute ( ) Returns the login model attribute.
loginAttributeLabel ( ) Returns the login label as a word.
onActivate ( string $code = null ) Activate the user
onDeactivate ( ) Deactivate user
onRegister ( ) Register the user
onRun ( ) Executed when this component is bound to a page or layout.
onSendActivationEmail ( ) Trigger a subsequent activation email
onSignin ( ) Sign in the user
onUpdate ( ) Update the user
user ( ) Returns the logged in user, if available

보호된 메소드들

메소드 설명
makeRedirection ( ) : mixed Redirect to the intended page after successful update, sign in or registration.
sendActivationEmail ( User $user ) : void Sends the activation email to a user

메소드 상세

componentDetails() 공개 메소드

public componentDetails ( )

defineProperties() 공개 메소드

public defineProperties ( )

getRedirectOptions() 공개 메소드

public getRedirectOptions ( )

loginAttribute() 공개 메소드

Returns the login model attribute.
public loginAttribute ( )

loginAttributeLabel() 공개 메소드

Returns the login label as a word.
public loginAttributeLabel ( )

makeRedirection() 보호된 메소드

The URL can come from the "redirect" property or the "redirect" postback value.
protected makeRedirection ( ) : mixed
리턴 mixed

onActivate() 공개 메소드

Activate the user
public onActivate ( string $code = null )
$code string Activation code

onDeactivate() 공개 메소드

Deactivate user
public onDeactivate ( )

onRegister() 공개 메소드

Register the user
public onRegister ( )

onRun() 공개 메소드

Executed when this component is bound to a page or layout.
public onRun ( )

onSendActivationEmail() 공개 메소드

Trigger a subsequent activation email

onSignin() 공개 메소드

Sign in the user
public onSignin ( )

onUpdate() 공개 메소드

Update the user
public onUpdate ( )

sendActivationEmail() 보호된 메소드

Sends the activation email to a user
protected sendActivationEmail ( User $user ) : void
$user User
리턴 void

user() 공개 메소드

Returns the logged in user, if available
public user ( )