Peta
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
user Class Reference
Inheritance diagram for user:
abstractUser

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
 

Detailed Description

This class is a logged in user.. It's necessary to be login here! For informations of other user use the alienobject

Author
skamster

Constructor & Destructor Documentation

user::__construct (   $username,
  $password,
  $connection 
)

This do the login

Parameters
String$usernameis the username
String$passwordis the password
unknown_type$connectionis a pdo-object with the right informations

Member Function Documentation

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 user::initialiseRoles (   $userId,
  $connection 
)
static

Temporary method to use it also in alienuser..

user::isValid ( )

Check, if the user is realy a user-object

Returns
string|string
user::logout ( )

Do logout the user

user::setPassword (   $newPassword,
  $oldPassword,
  $connection 
)

Change the password of a user

Parameters
$newPassword
$oldPassword
$connection

The documentation for this class was generated from the following file: