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

(pas de description)

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

Définit 1 class

vbb3UserDataProvider:: (21 méthodes):
  vbb3UserDataProvider()
  vbbAllowed()
  vbbAdmin()
  vbbCheckPassword()
  authenticateUser()
  getUserInfo()
  getUserInfoFromUsername()
  getUserInfoFromId()
  vbb3AddBlog()
  _mapUserInfoObject()
  getAllUsers()
  updateUser()
  getLastPhpBBUserId()
  addUser()
  updatepLogPHPBB2UserData()
  getpLogPHPBBUserData()
  deleteUser()
  getNumUsers()
  emailExists()
  getSearchConditions()
  getBlogUsers()


Classe: vbb3UserDataProvider  - X-Ref

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

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


vbbAllowed( $row )   X-Ref
Pas de description

vbbAdmin( $row )   X-Ref
Pas de description

vbbCheckPassword( $pass , $row )   X-Ref
Pas de description

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.

vbb3AddBlog( $row )   X-Ref
Pas de description

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

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: 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.

getLastPhpBBUserId()   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

updatepLogPHPBB2UserData( &$user )   X-Ref

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

getpLogPHPBBUserData( $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 , $searchTerms = "" )   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

getSearchConditions( $searchTerms )   X-Ref


getBlogUsers( $blogId, $includeOwner = true, $status = USER_STATUS_ALL, $searchTerms = "" )   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.
param: status
param: searchTerms
return: An array with the information about the users who belong in



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