Public Member Functions | |
__construct ($username, $password, $connection) | |
editCustomfield ($id, $key, $value, $connection) | |
getUrow () | |
setAdmin ($admin) | |
setPluginAccess ($pluginAccess) | |
getPluginAccess () | |
getAdmin () | |
orderCustomfields ($cmOrderList, $connection) | |
getCustomfields ($connection) | |
addCustomfield ($key, $value, $connection) | |
getCustomfieldByKey ($key) | |
getCustomfieldById ($id) | |
addRole ($roleid, $connection) | |
delRole ($roleid, $connection) | |
removeCustomfield ($id, $connection) | |
setPassword ($newPassword, $oldPassword, $connection) | |
getRolesIds () | |
getPassword () | |
disableWelcome () | |
getWelcome () | |
getId () | |
getMessages () | |
getRoles () | |
getUsername () | |
getLastLogin () | |
getLastIp () | |
isValid () | |
logout () | |
Public Member Functions inherited from abstractUser | |
getId () | |
getUsername () | |
Static Public Member Functions | |
static | initialiseRoles ($userId, $connection) |
Public Attributes | |
$urow | |
This class is a logged in user.. It's necessary to be login here! For informations of other user use the alienobject
user::__construct | ( | $username, | |
$password, | |||
$connection | |||
) |
This do the login
String | $username | is the username |
String | $password | is the password |
unknown_type | $connection | is a pdo-object with the right informations |
user::disableWelcome | ( | ) |
Disable the welcome-message
user::getId | ( | ) |
Get the id
user::getLastIp | ( | ) |
get the last used ip
user::getLastLogin | ( | ) |
get the lastLogin as a date
user::getMessages | ( | ) |
Get some messages for the channel (not im-messages, error-messages!)
user::getPassword | ( | ) |
Get the hashed password of a user
user::getRoles | ( | ) |
Let's get all the roles a user have
user::getUsername | ( | ) |
get the username
user::getWelcome | ( | ) |
Was the user logged in for one time?
|
static |
Temporary method to use it also in alienuser..
user::isValid | ( | ) |
Check, if the user is realy a user-object
user::logout | ( | ) |
Do logout the user
user::setPassword | ( | $newPassword, | |
$oldPassword, | |||
$connection | |||
) |
Change the password of a user
$newPassword | |
$oldPassword | |
$connection |