PHP 클래스 Ezlogin

저자: Roni Kumar Saha ([email protected])
파일 보기 프로젝트 열기: xiidea/ezrbac

공개 메소드들

메소드 설명
__construct ( )
auto_login ( ) : boolean Automatic login user form cookie value return false if no valid cookie information found and auto login faild
getError ( )
login ( ) handle login
logout ( ) : void Logout user from the site
recover_password ( ) Recover Password Function This function called when the password recovery form submited
register_session ( $user, $remember = FALSE, $cookie = FALSE )
resetPassword ( array $param = [] ) : boolean validate and reset the password

보호된 메소드들

메소드 설명
send_email ( $option ) : mixed

비공개 메소드들

메소드 설명
create_autologin ( $user_id ) : boolean Save data for user's autologin
delete_autologin ( ) : void Clear user's autologin data
end_now ( ) terminate the execution within the script! we will be stop here and further execution will be stopped I have not found anything to detect the exit , so doing it manually!! Hope the piece of code will not be necessary when i figure it out!!!
get_view_ref ( $view ) : string Return the template file. If override file available, return that template
load_view ( $view, $data, boolean $return = false ) : mixed Proxy for the load->view() to enable template override
process_login ( ) : boolean validate and process the login
process_recovery ( $user ) : boolean validate and process the password recovery
validateRequestHash ( $user, string $key = "" ) : boolean
validation_rule ( integer $index ) : array
view_login_form ( ) Display the login form. if there is any error also show it
view_password_reset_form ( ) Display the reset password form. if there is any error also show it
view_password_reset_message ( ) Display the reset password form. if there is any error also show it

메소드 상세

__construct() 공개 메소드

public __construct ( )

auto_login() 공개 메소드

Automatic login user form cookie value return false if no valid cookie information found and auto login faild
public auto_login ( ) : boolean
리턴 boolean

getError() 공개 메소드

public getError ( )

login() 공개 메소드

handle login
public login ( )

logout() 공개 메소드

Logout user from the site
public logout ( ) : void
리턴 void

recover_password() 공개 메소드

Recover Password Function This function called when the password recovery form submited
public recover_password ( )

register_session() 공개 메소드

public register_session ( $user, $remember = FALSE, $cookie = FALSE )

resetPassword() 공개 메소드

validate and reset the password
public resetPassword ( array $param = [] ) : boolean
$param array
리턴 boolean

send_email() 보호된 메소드

protected send_email ( $option ) : mixed
$option
리턴 mixed