PHP 클래스 BcAuthComponent

Binds access control with user authentication and session management.
상속: extends AuthComponent
파일 보기 프로젝트 열기: baserproject/basercms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$serial string 個体識別ID

공개 메소드들

메소드 설명
deleteSerial ( ) : boolean 個体識別IDを削除する
getSerial ( ) : string 個体識別IDを取得
login ( array $user = null ) : boolean Log a user in. If a $user is provided that data will be stored as the logged in user. If $user is empty or not specified, the request will be used to identify a user. If the identification was successful, the user record is written to the session key specified in AuthComponent::$sessionKey. Logging in will also change the session id in order to help mitigate session replays.
logout ( ) : string Logs a user out, and returns the login action to redirect to.
relogin ( ) 再ログインを実行する
saveSerial ( ) : boolean 個体識別IDを保存する
setSessionKey ( string $sessionKey ) セッションキーをセットする

메소드 상세

deleteSerial() 공개 메소드

個体識別IDを削除する
public deleteSerial ( ) : boolean
리턴 boolean

getSerial() 공개 메소드

個体識別IDを取得
public getSerial ( ) : string
리턴 string

login() 공개 메소드

Log a user in. If a $user is provided that data will be stored as the logged in user. If $user is empty or not specified, the request will be used to identify a user. If the identification was successful, the user record is written to the session key specified in AuthComponent::$sessionKey. Logging in will also change the session id in order to help mitigate session replays.
public login ( array $user = null ) : boolean
$user array Either an array of user data, or null to identify a user using the current request.
리턴 boolean True on login success, false on failure

logout() 공개 메소드

Triggers the logout() method of all the authenticate objects, so they can perform custom logout logic. AuthComponent will remove the session data, so there is no need to do that in an authentication object. Logging out will also renew the session id. This helps mitigate issues with session replays.
public logout ( ) : string
리턴 string AuthComponent::$logoutRedirect

relogin() 공개 메소드

return boolean
public relogin ( )

saveSerial() 공개 메소드

個体識別IDを保存する
public saveSerial ( ) : boolean
리턴 boolean

setSessionKey() 공개 메소드

セッションキーをセットする
public setSessionKey ( string $sessionKey )
$sessionKey string

프로퍼티 상세

$serial 공개적으로 프로퍼티

個体識別ID
public string $serial
리턴 string