PHP 클래스 CakeDC\Users\Controller\Component\RememberMeComponent

Saves a cookie to keep the user logged into the application even when the session expires
상속: extends Cake\Controller\Component
파일 보기 프로젝트 열기: cakedc/users

공개 프로퍼티들

프로퍼티 타입 설명
$components array Components

보호된 프로퍼티들

프로퍼티 타입 설명
$_cookieName string Name of the cookie

공개 메소드들

메소드 설명
beforeFilter ( Cake\Event\Event $event ) : mixed Reads the stored cookie and auto login the user if present
destroy ( Cake\Event\Event $event ) : void Destroys the remember me cookie
initialize ( array $config ) : void Initialize config data and properties.
setCookieOptions ( ) : void Sets cookie configuration options
setLoginCookie ( Cake\Event\Event $event ) : void Sets the login cookie that handles the remember me feature

보호된 메소드들

메소드 설명
_attachEvents ( ) : void Attach the afterLogin and beforeLogount events
_validateConfig ( ) : void Validate component config

메소드 상세

_attachEvents() 보호된 메소드

Attach the afterLogin and beforeLogount events
protected _attachEvents ( ) : void
리턴 void

_validateConfig() 보호된 메소드

Validate component config
protected _validateConfig ( ) : void
리턴 void

beforeFilter() 공개 메소드

Reads the stored cookie and auto login the user if present
public beforeFilter ( Cake\Event\Event $event ) : mixed
$event Cake\Event\Event event
리턴 mixed

destroy() 공개 메소드

Destroys the remember me cookie
public destroy ( Cake\Event\Event $event ) : void
$event Cake\Event\Event event
리턴 void

initialize() 공개 메소드

Initialize config data and properties.
public initialize ( array $config ) : void
$config array The config data.
리턴 void

setCookieOptions() 공개 메소드

Sets cookie configuration options
public setCookieOptions ( ) : void
리턴 void

setLoginCookie() 공개 메소드

Sets the login cookie that handles the remember me feature
public setLoginCookie ( Cake\Event\Event $event ) : void
$event Cake\Event\Event event
리턴 void

프로퍼티 상세

$_cookieName 보호되어 있는 프로퍼티

Name of the cookie
protected string $_cookieName
리턴 string

$components 공개적으로 프로퍼티

Components
public array $components
리턴 array