Ryzom Account Management System
1.0
|
handles CMS/WWW related functions regarding user management & registration. More...
Public Member Functions | |
__construct ($UId=0) | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
checkLoginMatch ($username, $password) | |
check if the login username and password match the db. | |
getUId () | |
get uId attribute of the object. | |
getUsername () | |
get login attribute of the object. | |
getEmail () | |
get email attribute of the object. | |
getInfo () | |
get basic info of the object. | |
getReceiveMail () | |
get receiveMail attribute of the object. | |
getLanguage () | |
get language attribute of the object. | |
isLoggedIn () | |
check if the user is logged in. | |
setPassword ($user, $pass) | |
update the password. | |
setEmail ($user, $mail) | |
update the emailaddress. | |
getUsers () | |
return all users. | |
__construct ($UId=0) | |
A constructor. | |
set ($values) | |
sets the object's attributes. | |
checkLoginMatch ($username, $password) | |
check if the login username and password match the db. | |
getUId () | |
get uId attribute of the object. | |
getUsername () | |
get login attribute of the object. | |
getEmail () | |
get email attribute of the object. | |
getInfo () | |
get basic info of the object. | |
getReceiveMail () | |
get receiveMail attribute of the object. | |
getLanguage () | |
get language attribute of the object. | |
isLoggedIn () | |
check if the user is logged in. | |
setPassword ($user, $pass) | |
update the password. | |
setEmail ($user, $mail) | |
update the emailaddress. | |
getUsers () | |
return all users. | |
Static Public Member Functions | |
static | getId ($username) |
returns te id for a given username | |
static | getIdFromEmail ($email) |
returns te id for a given emailaddress | |
static | setReceiveMail ($user, $receivemail) |
update the setReceiveMail value in the db. | |
static | setLanguage ($user, $language) |
update the language value in the db. | |
static | getAllUsersQuery () |
return the query that should get all users. | |
static | createWebuser ($name, $pass, $mail) |
creates a webuser. | |
static | getId ($username) |
returns te id for a given username | |
static | getIdFromEmail ($email) |
returns te id for a given emailaddress | |
static | setReceiveMail ($user, $receivemail) |
update the setReceiveMail value in the db. | |
static | setLanguage ($user, $language) |
update the language value in the db. | |
static | getAllUsersQuery () |
return the query that should get all users. | |
static | createWebuser ($name, $pass, $mail) |
creates a webuser. | |
Protected Member Functions | |
checkUserNameExists ($username) | |
function that checks if a username exists already or not. | |
checkEmailExists ($email) | |
function that checks if a email exists already or not. | |
checkUserNameExists ($username) | |
function that checks if a username exists already or not. | |
checkEmailExists ($email) | |
function that checks if a email exists already or not. | |
Private Attributes | |
$uId | |
The user id. | |
$login | |
The username. | |
The email address. | |
$firstname | |
The users first name. | |
$lastname | |
The users last name. | |
$gender | |
The gender. | |
$country | |
2 letter word matching the country of the user | |
$receiveMail | |
configuration regarding if the user wants to receive email notifications or not. | |
$language | |
Language of the user. |
handles CMS/WWW related functions regarding user management & registration.
inherits from the Users class. The methods of this class have to be rewritten according to the CMS's functionality that you wish to use. The drupal_module has a webusers class of its own in the module itself.
__construct | ( | $ | UId = 0 | ) |
A constructor.
loads the object with the UID, if none is given it will use 0.
$UId | the UID of the user you want to instantiate. |
__construct | ( | $ | UId = 0 | ) |
A constructor.
loads the object with the UID, if none is given it will use 0.
$UId | the UID of the user you want to instantiate. |
checkEmailExists | ( | $ | ) | [protected] |
function that checks if a email exists already or not.
This function overrides the function of the base class.
the email address in question. |
Reimplemented from Users.
checkEmailExists | ( | $ | ) | [protected] |
function that checks if a email exists already or not.
This function overrides the function of the base class.
the email address in question. |
Reimplemented from Users.
checkLoginMatch | ( | $ | username, |
$ | password | ||
) |
check if the login username and password match the db.
$username | the inserted username |
$password | the inserted password (unhashed) |
Reimplemented from Users.
checkLoginMatch | ( | $ | username, |
$ | password | ||
) |
check if the login username and password match the db.
$username | the inserted username |
$password | the inserted password (unhashed) |
Reimplemented from Users.
checkUserNameExists | ( | $ | username | ) | [protected] |
function that checks if a username exists already or not.
This function overrides the function of the base class.
$username | the username in question |
Reimplemented from Users.
checkUserNameExists | ( | $ | username | ) | [protected] |
function that checks if a username exists already or not.
This function overrides the function of the base class.
$username | the username in question |
Reimplemented from Users.
static createWebuser | ( | $ | name, |
$ | pass, | ||
$ | |||
) | [static] |
creates a webuser.
it will set the language matching to the language cookie setting and add it to the www/CMS's DB.
$name | the username |
$pass | the unhashed password |
the email address |
static createWebuser | ( | $ | name, |
$ | pass, | ||
$ | |||
) | [static] |
creates a webuser.
it will set the language matching to the language cookie setting and add it to the www/CMS's DB.
$name | the username |
$pass | the unhashed password |
the email address |
static getAllUsersQuery | ( | ) | [static] |
return the query that should get all users.
static getAllUsersQuery | ( | ) | [static] |
return the query that should get all users.
getEmail | ( | ) |
get email attribute of the object.
getEmail | ( | ) |
get email attribute of the object.
static getId | ( | $ | username | ) | [static] |
returns te id for a given username
$username | the username |
static getId | ( | $ | username | ) | [static] |
returns te id for a given username
$username | the username |
static getIdFromEmail | ( | $ | ) | [static] |
returns te id for a given emailaddress
the emailaddress |
static getIdFromEmail | ( | $ | ) | [static] |
returns te id for a given emailaddress
the emailaddress |
getInfo | ( | ) |
get basic info of the object.
getInfo | ( | ) |
get basic info of the object.
getLanguage | ( | ) |
get language attribute of the object.
getLanguage | ( | ) |
get language attribute of the object.
getReceiveMail | ( | ) |
get receiveMail attribute of the object.
getReceiveMail | ( | ) |
get receiveMail attribute of the object.
getUId | ( | ) |
get uId attribute of the object.
getUId | ( | ) |
get uId attribute of the object.
getUsername | ( | ) |
get login attribute of the object.
(username)
getUsername | ( | ) |
get login attribute of the object.
(username)
getUsers | ( | ) |
return all users.
getUsers | ( | ) |
return all users.
isLoggedIn | ( | ) |
check if the user is logged in.
isLoggedIn | ( | ) |
check if the user is logged in.
set | ( | $ | values | ) |
sets the object's attributes.
$values | should be an array. |
set | ( | $ | values | ) |
sets the object's attributes.
$values | should be an array. |
setEmail | ( | $ | user, |
$ | |||
) |
update the emailaddress.
update the emailaddress in the shard + update the emailaddress in the www/CMS version.
$user | the username |
the new emailaddress. |
setEmail | ( | $ | user, |
$ | |||
) |
update the emailaddress.
update the emailaddress in the shard + update the emailaddress in the www/CMS version.
$user | the username |
the new emailaddress. |
static setLanguage | ( | $ | user, |
$ | language | ||
) | [static] |
update the language value in the db.
update the language in the www/CMS version.
$user | the username |
$language | the new language value. |
static setLanguage | ( | $ | user, |
$ | language | ||
) | [static] |
update the language value in the db.
update the language in the www/CMS version.
$user | the username |
$language | the new language value. |
setPassword | ( | $ | user, |
$ | pass | ||
) |
update the password.
update the password in the shard + update the password in the www/CMS version.
$user | the username |
$pass | the new password. |
setPassword | ( | $ | user, |
$ | pass | ||
) |
update the password.
update the password in the shard + update the password in the www/CMS version.
$user | the username |
$pass | the new password. |
static setReceiveMail | ( | $ | user, |
$ | receivemail | ||
) | [static] |
update the setReceiveMail value in the db.
update the receiveMail in the www/CMS version.
$user | the username |
$receivemail | the receivemail setting . |
static setReceiveMail | ( | $ | user, |
$ | receivemail | ||
) | [static] |
update the setReceiveMail value in the db.
update the receiveMail in the www/CMS version.
$user | the username |
$receivemail | the receivemail setting . |
$country [private] |
2 letter word matching the country of the user
$email [private] |
The email address.
$firstname [private] |
The users first name.
$gender [private] |
The gender.
$language [private] |
Language of the user.
$lastname [private] |
The users last name.
$login [private] |
The username.
$receiveMail [private] |
configuration regarding if the user wants to receive email notifications or not.
$uId [private] |
The user id.