[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/dao/ -> users.class.php (sommaire)

(pas de description)

Poids: 205 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 46 fois
Nécessite: 0 fichiers

Définit 1 class

Users:: (15 méthodes):
  Users()
  _loadUserDataProvider()
  authenticateUser()
  getUserInfoFromUsername()
  getUserInfo()
  getUserInfoFromId()
  getUsersBlogs()
  getAllUsers()
  updateUser()
  addUser()
  getBlogUsers()
  deleteUser()
  getNumUsers()
  emailExists()
  mapRow()


Classe: Users  - X-Ref

Model representing the users in our application. Provides the methods such as
authentication and querying for users.

\ingroup DAO
Users()   X-Ref
Initializes the model


_loadUserDataProvider()   X-Ref


authenticateUser( $user, $pass )   X-Ref
Returns true if the user is in the database and the username
and password match

param: user Username of the user who we'd like to authenticate
param: pass Password of the user
return: true if user and password correct or false otherwise.

getUserInfoFromUsername( $username )   X-Ref
Retrieves the user information but given only a username

param: username The username of the user
return: Returns a UserInfo object with the requested information, or false otherwise.

getUserInfo( $user, $pass )   X-Ref
Returns all the information associated to the user given

param: user Username of the user from who we'd like to get the information
param: pass Password of the user we'd like to get the information
return: Returns a UserInfo object with the requested information, or false otherwise.

getUserInfoFromId( $userid, $extendedInfo = false )   X-Ref
Retrieves the user infromation but given only a userid

param: userId User ID of the user from whom we'd like to get the information
return: Returns a UserInfo object with the requested information, or false otherwise.

getUsersBlogs( $userid, $status = BLOG_STATUS_ALL )   X-Ref
Returns an array of BlogInfo objects with the information of all the blogs to which
a user belongs

param: userId Identifier of the user
return: An array of BlogInfo objects to whom the user belongs.

getAllUsers( $status = USER_STATUS_ALL, $searchTerms = "", $orderBy = "", $page = -1, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE )   X-Ref
Returns an array with all the users available in the database

param: status
param: searchTerms
param: orderBy
param: page
param: itemsPerPage
return: An array containing all the users.

updateUser( $userInfo )   X-Ref
Updates the information related to a user

param: userInfo An UserInfo object containing the <b>already udpated</b> information of the
return: Returns true if ok or false otherwise.

addUser( &$user )   X-Ref
Adds a user to the database.

param: user An UserInfo object with the necessary information
return: Returns the identifier assigned to the user, or false if there was any error. It will also modify the

getBlogUsers( $blogId, $includeOwner = true, $status = USER_STATUS_ALL )   X-Ref
Returns an array with all the users that belong to the given
blog.

param: blogId The blog identifier.
param: includeOwner Wether to include the owner of the blog or not.
return: An array with the information about the users who belong in

deleteUser( $userId )   X-Ref
Removes users from the database

param: userId The identifier of the user we are trying to remove

getNumUsers( $status = USER_STATUS_ALL, $searchTerms = "" )   X-Ref
returns the total number of users

param: status
param: searchTerms
return: total number of users

emailExists($email)   X-Ref
check if the email account has been registered

return: true if the email account has been registered

mapRow( $row )   X-Ref




Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics