PHP Класс BcAuthComponent

Binds access control with user authentication and session management.
Наследование: extends AuthComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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.
См. также: AuthComponent::$logoutRedirect
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