Class User

Description

Implements the user model.

  • author: Libor Tichy

Located in /Application/UserModel.php (line 15)

NUser
   |
   --User
Method Summary
static boolean checkPassword (FormControl $item, int $id)
static array getUser (id $id)
static string getUsers ([string $filter = array()], [ $limit = null], [ $offset = null])
IIdentity authenticate ( $credentials)
void changeData (array $array)
boolean hasCharacter ()
Methods
static checkPassword (line 71)

Check if the value in item is a password for user whith id.

  • access: public
static boolean checkPassword (FormControl $item, int $id)
  • FormControl $item
  • int $id
static getUser (line 60)

Return informations about user whith id.

  • access: public
static array getUser (id $id)
  • id $id: int
static getUsers (line 49)

Return all users in database.

  • access: public
static string getUsers ([string $filter = array()], [ $limit = null], [ $offset = null])
  • string $filter
  • $limit
  • $offset
authenticate (line 23)

Performs an authentication

  • throws: NAuthenticationException
  • access: public
IIdentity authenticate ( $credentials)
  • array $credentials
changeData (line 83)

Change user data in DB.

  • access: public
void changeData (array $array)
  • array $array
hasCharacter (line 101)

Check if the account has character.

  • access: public
boolean hasCharacter ()

Documentation generated on Tue, 07 Jun 2011 20:47:28 +0200 by phpDocumentor 1.4.3