PHP 클래스 Kohana_Auth_ORM, php-framework-benchmarks

[!!] this Auth driver does not support roles nor autologin.
저자: Kohana Team
상속: extends Auth
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
auto_login ( ) : mixed Logs a user in, based on the authautologin cookie.
check_password ( string $password ) : boolean Compare password with original (hashed). Works for current (logged in) user
force_login ( $user, $mark_session_as_forced = FALSE ) : boolean Forces a user to be logged in, without specifying a password.
get_user ( ) : mixed Gets the currently logged in user from the session (with auto_login check).
logged_in ( $role = NULL, $all_required = TRUE ) : boolean Checks if a session is active.
logout ( $destroy = FALSE, $logout_all = FALSE ) : boolean Log a user out and remove any autologin cookies.
password ( $user ) : string Get the stored password for a username.
remember ( Model_User $user = NULL ) : boolean Remember user (create token and save it in cookie)

보호된 메소드들

메소드 설명
_login ( $user, $password, $remember ) : boolean Logs a user in.
complete_login ( $user ) : void Complete the login for a user by incrementing the logins and setting session data: user_id, username, roles.

메소드 상세

_login() 보호된 메소드

Logs a user in.
protected _login ( $user, $password, $remember ) : boolean
리턴 boolean

auto_login() 공개 메소드

Logs a user in, based on the authautologin cookie.
public auto_login ( ) : mixed
리턴 mixed

check_password() 공개 메소드

Compare password with original (hashed). Works for current (logged in) user
public check_password ( string $password ) : boolean
$password string
리턴 boolean

complete_login() 보호된 메소드

Complete the login for a user by incrementing the logins and setting session data: user_id, username, roles.
protected complete_login ( $user ) : void
리턴 void

force_login() 공개 메소드

Forces a user to be logged in, without specifying a password.
public force_login ( $user, $mark_session_as_forced = FALSE ) : boolean
리턴 boolean

get_user() 공개 메소드

Returns FALSE if no user is currently logged in.
public get_user ( ) : mixed
리턴 mixed

logged_in() 공개 메소드

Checks if a session is active.
public logged_in ( $role = NULL, $all_required = TRUE ) : boolean
리턴 boolean

logout() 공개 메소드

Log a user out and remove any autologin cookies.
public logout ( $destroy = FALSE, $logout_all = FALSE ) : boolean
리턴 boolean

password() 공개 메소드

Get the stored password for a username.
public password ( $user ) : string
리턴 string

remember() 공개 메소드

Remember user (create token and save it in cookie)
public remember ( Model_User $user = NULL ) : boolean
$user Model_User
리턴 boolean