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

(pas de description)

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

Définit 1 class

LifeTypeUserDataProvider:: (13 méthodes):
  LifeTypeUserDataProvider()
  authenticateUser()
  getUserInfo()
  getUserInfoFromUsername()
  getUserInfoFromId()
  getAllUsers()
  buildSearchCondition()
  updateUser()
  addUser()
  deleteUser()
  getNumUsers()
  emailExists()
  getSearchConditions()


Classe: LifeTypeUserDataProvider  - X-Ref

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

\ingroup User_Data_Providers
LifeTypeUserDataProvider( $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 )   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.

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: searchTerms
param: orderBy
param: page
param: itemsPerPage
return: An array containing all the users.

buildSearchCondition( $searchTerms )   X-Ref


updateUser( $user )   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

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




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