메소드 | 설명 | |
---|---|---|
createUser ( $username ) : |
Creates a new user instance given the username. | |
createUserFromCookie ( $cookie ) : |
Creates a new user instance given the cookie containing auth data. | |
getDbConnection ( ) : |
Returns a database connection that may be used to retrieve data from database. | |
saveUserToCookie ( $cookie ) | Saves necessary auth data into a cookie. | |
validateUser ( $username, $password ) : boolean | Validates if username and password are correct entries. |
abstract public createUser ( $username ) : |
||
리턴 | the newly created and initialized user instance |
public createUserFromCookie ( $cookie ) : |
||
리턴 | the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. |
public getDbConnection ( ) : |
||
리턴 | database connection that may be used to retrieve data from database |
public saveUserToCookie ( $cookie ) |
abstract public validateUser ( $username, $password ) : boolean | ||
리턴 | boolean | whether the validation succeeds |