[ Index ]
 

Code source de CMS made simple 1.0.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/classes/ -> class.user.inc.php (sommaire)

(pas de description)

Poids: 165 lignes (3 kb)
Inclus ou requis: 5 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

User:: (5 méthodes):
  User()
  SetInitialValues()
  SetPassword()
  Save()
  Delete()


Classe: User  - X-Ref

Generic user class.  This can be used for any logged in user or user related function.

User()   X-Ref
Generic constructor.  Runs the SetInitialValues fuction.


SetInitialValues()   X-Ref
Sets object to some sane initial values


SetPassword($password)   X-Ref
Encrypts and sets password for the User


Save()   X-Ref
Saves the user to the database.  If no user_id is set, then a new record
is created.  If the uset_id is set, then the record is updated to all values
in the User object.

returns: mixed If successful, true.  If it fails, false.

Delete()   X-Ref
Delete the record for this user from the database and resets
all values to their initial values.

returns: mixed If successful, true.  If it fails, false.



Généré le : Tue Apr 3 18:50:37 2007 par Balluche grâce à PHPXref 0.7