[ 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/userdata/ -> wbbuserdataprovider.class.php (sommaire)

(pas de description)

Poids: 450 lignes (18 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

WBBUserDataProvider:: (16 méthodes):
  WBBUserDataProvider()
  authenticateUser()
  getUserInfo()
  getUserInfoFromUsername()
  getUserInfoFromId()
  WBB2AddBlog()
  _mapUserInfoObject()
  getAllUsers()
  updateUser()
  getLastWBBUserId()
  addUser()
  updatepLogWBBUserData()
  getpLogWBBUserData()
  deleteUser()
  getNumUsers()
  emailExists()


Classe: WBBUserDataProvider  - X-Ref

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

\ingroup User_Data_Providers
WBBUserDataProvider( $providerConfig )   X-Ref
Initializes the model


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.

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.

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.

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.

WBB2AddBlog( $row )   X-Ref
Pas de description

_mapUserInfoObject( $row, $extraInfo = false )   X-Ref
Pas de description

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

param: status
param: includeExtraInfo
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.

getLastWBBUserId()   X-Ref


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

updatepLogWBBUserData( &$user )   X-Ref

param: user A UserInfo object
return: true if successful or false otherwise

getpLogWBBUserData( $userId )   X-Ref

param: userId
return: A row with the extra user data or false otherwise

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 )   X-Ref
returns the total number of users

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



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