PHP Class USER, webmum

显示文件 Open project: ohartl/webmum Class Usage Examples

Public Methods

Method Description
__construct ( ) * Constructor
change_password ( $newpass, $newpass_rep ) * Changes user password.
getRole ( )
getUID ( ) * Getter functions
isLoggedIn ( )
login ( $email, $password ) * Login function. Checks login data and writes information to SESSION

Method Details

__construct() public method

Fills the user object up with anonymous data
public __construct ( )

change_password() public method

Returns: true: Change success false: Error
public change_password ( $newpass, $newpass_rep )

getRole() public method

public getRole ( )

getUID() public method

* Getter functions
public getUID ( )

isLoggedIn() public method

public isLoggedIn ( )

login() public method

Returns: true: Login was successful false: Login was not successful
public login ( $email, $password )