Class User
Located at classes/User.php
Methods summary
public static
User
|
#
login( String $email, String $password )
This function gets the user details from the database
This function gets the user details from the database
Parameters
- $email
- the user email
- $password
- the login password
Returns
User returns an object of type user or null if the password or email is wrong
|
public
|
|
public
|
#
resetPassword( $email )
|
public
|
#
openPage( Page $page )
This function opens a web page
This function opens a web page
Parameters
|
public static
User
|
#
getUser( integer $id )
This function gets the user details from the database
This function gets the user details from the database
Parameters
Returns
User returns an object of type user or null if user doesn't exist
|
Properties summary
public
|
$id
|
|
public
|
$email
|
|