[ 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.useroperations.inc.php (sommaire)

Class for doing user related functions.  Maybe of the User object functions are just wrappers around these.

Poids: 327 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

UserOperations:: (9 méthodes):
  LoadUsers()
  LoadUsersInGroup()
  LoadUserByUsername()
  LoadUserByID()
  InsertUser()
  UpdateUser()
  DeleteUserByID()
  CountPageOwnershipByID()
  GenerateDropdown()


Classe: UserOperations  - X-Ref

LoadUsers()   X-Ref
Gets a list of all users

returns: array An array of User objects

LoadUsersInGroup($groupid)   X-Ref
Gets a list of all users in a given group

returns: array An array of User objects
param: mixed $groupid Group for the loaded users

LoadUserByUsername($username, $password = '', $activeonly = true, $adminaccessonly = false)   X-Ref
Loads a user by username.

returns: mixed If successful, the filled User object.  If it fails, it returns false.
param: mixed $username Username to load
param: mixed $password Password to check against
param: mixed $activeonly Only load the user if they are active
param: mixed $adminaccessonly Only load the user if they have admin access

LoadUserByID($id)   X-Ref
Loads a user by user id.

returns: mixed If successful, the filled User object.  If it fails, it returns false.
param: mixed $id User id to load

InsertUser($user)   X-Ref
Saves a new user to the database.

returns: mixed The new user id.  If it fails, it returns -1.
param: mixed $usre User object to save

UpdateUser($user)   X-Ref
Updates an existing user in the database.

returns: mixed If successful, true.  If it fails, false.
param: mixed $user User object to save

DeleteUserByID($id)   X-Ref
Deletes an existing user from the database.

returns: mixed If successful, true.  If it fails, false.
param: mixed $id Id of the user to delete

CountPageOwnershipByID($id)   X-Ref
Show the number of pages the given user's id owns.

returns: mixed Number of pages they own.  0 if any problems.
param: mixed $id Id of the user to count

GenerateDropdown($currentuserid='', $name='ownerid')   X-Ref
Pas de description



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