XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe XoopsMemberHandler

Fonctions membres publiques

 __construct (XoopsDatabase $db)
 
createGroup ()
 
 createUser ()
 
 getGroup ($id)
 
 getUser ($id)
 
 deleteGroup (XoopsGroup $group)
 
 deleteUser (XoopsUser $user)
 
 insertGroup (XoopsGroup $group)
 
 insertUser (XoopsUser $user, $force=false)
 
 getGroups (CriteriaElement $criteria=null, $id_as_key=false)
 
 getUsers (CriteriaElement $criteria=null, $id_as_key=false)
 
 getGroupList (CriteriaElement $criteria=null)
 
 getUserList (CriteriaElement $criteria=null)
 
 addUserToGroup ($group_id, $user_id)
 
 removeUsersFromGroup ($group_id, $user_ids=array())
 
 getUsersByGroup ($group_id, $asobject=false, $limit=0, $start=0)
 
 getGroupsByUser ($user_id, $asobject=false)
 
 loginUser ($uname, $pwd)
 
 getUserCount (CriteriaElement $criteria=null)
 
 getUserCountByGroup ($group_id)
 
 updateUserByField (XoopsUser $user, $fieldName, $fieldValue)
 
 updateUsersByField ($fieldName, $fieldValue, CriteriaElement $criteria=null)
 
 activateUser (XoopsUser $user)
 
 getUsersByGroupLink ($groups, CriteriaElement $criteria=null, $asobject=false, $id_as_key=false)
 
 getUserCountByGroupLink ($groups, CriteriaElement $criteria=null)
 

Attributs protégés

 $groupHandler
 
 $userHandler
 
 $membershipHandler
 
 $membersWorkingList = array()
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( XoopsDatabase  $db)

constructor

Paramètres
XoopsDatabase|null|$db

Documentation des fonctions membres

◆ activateUser()

activateUser ( XoopsUser  $user)

activate a user

Paramètres
XoopsUser$userreference to the XoopsUser object
Renvoie
mixed successful? false on failure

◆ addUserToGroup()

addUserToGroup (   $group_id,
  $user_id 
)

add a user to a group

Paramètres
int$group_idID of the group
int$user_idID of the user
Renvoie
XoopsMembership XoopsMembership

◆ createGroup()

& createGroup ( )

create a new group

Renvoie
XoopsGroup XoopsGroup reference to the new group

◆ createUser()

createUser ( )

create a new user

Renvoie
XoopsUser reference to the new user

◆ deleteGroup()

deleteGroup ( XoopsGroup  $group)

delete a group

Paramètres
XoopsGroup$groupreference to the group to delete
Renvoie
bool FALSE if failed
+ Voici le graphe d'appel pour cette fonction :

◆ deleteUser()

deleteUser ( XoopsUser  $user)

delete a user

Paramètres
XoopsUser$userreference to the user to delete
Renvoie
bool FALSE if failed

◆ getGroup()

getGroup (   $id)

retrieve a group

Paramètres
int$idID for the group
Renvoie
XoopsGroup XoopsGroup reference to the group
+ Voici le graphe des appelants de cette fonction :

◆ getGroupList()

getGroupList ( CriteriaElement  $criteria = null)

get a list of groupnames and their IDs

Paramètres
CriteriaElement$criteriaCriteriaElement object
Renvoie
array associative array of group-IDs and names

◆ getGroups()

getGroups ( CriteriaElement  $criteria = null,
  $id_as_key = false 
)

retrieve groups from the database

Paramètres
CriteriaElement$criteriaCriteriaElement
bool$id_as_keyuse the group's ID as key for the array?
Renvoie
array array of XoopsGroup objects

◆ getGroupsByUser()

getGroupsByUser (   $user_id,
  $asobject = false 
)

get a list of groups that a user is member of

Paramètres
int$user_idID of the user
bool$asobjectreturn groups as XoopsGroup objects or arrays?
Renvoie
array array of objects or arrays
+ Voici le graphe d'appel pour cette fonction :

◆ getUser()

getUser (   $id)

retrieve a user

Paramètres
int$idID for the user
Renvoie
XoopsUser reference to the user
+ Voici le graphe des appelants de cette fonction :

◆ getUserCount()

getUserCount ( CriteriaElement  $criteria = null)

count users matching certain conditions

Paramètres
CriteriaElement$criteriaCriteriaElement object
Renvoie
int

◆ getUserCountByGroup()

getUserCountByGroup (   $group_id)

count users belonging to a group

Paramètres
int$group_idID of the group
Renvoie
int

◆ getUserCountByGroupLink()

getUserCountByGroupLink (   $groups,
CriteriaElement  $criteria = null 
)

Get count of users belonging to certain groups and matching criteria Temporary solution

Paramètres
int$groupsIDs of groups
CriteriaElement$criteria
Renvoie
int count of users

◆ getUserList()

getUserList ( CriteriaElement  $criteria = null)

get a list of usernames and their IDs

Paramètres
CriteriaElement$criteriaCriteriaElement object
Renvoie
array associative array of user-IDs and names

◆ getUsers()

getUsers ( CriteriaElement  $criteria = null,
  $id_as_key = false 
)

retrieve users from the database

Paramètres
CriteriaElement$criteriaCriteriaElement
bool$id_as_keyuse the group's ID as key for the array?
Renvoie
array array of XoopsUser objects

◆ getUsersByGroup()

getUsersByGroup (   $group_id,
  $asobject = false,
  $limit = 0,
  $start = 0 
)

get a list of users belonging to a group

Paramètres
int$group_idID of the group
bool$asobjectreturn the users as objects?
int$limitnumber of users to return
int$startindex of the first user to return
Renvoie
array Array of XoopsUser objects (if $asobject is TRUE) or of associative arrays matching the record structure in the database.
+ Voici le graphe d'appel pour cette fonction :

◆ getUsersByGroupLink()

getUsersByGroupLink (   $groups,
CriteriaElement  $criteria = null,
  $asobject = false,
  $id_as_key = false 
)

Get a list of users belonging to certain groups and matching criteria Temporary solution

Paramètres
array$groupsIDs of groups
CriteriaElement$criteriaCriteriaElement object
bool$asobjectreturn the users as objects?
bool$id_as_keyuse the UID as key for the array if $asobject is TRUE
Renvoie
array Array of XoopsUser objects (if $asobject is TRUE) or of associative arrays matching the record structure in the database.

◆ insertGroup()

insertGroup ( XoopsGroup  $group)

insert a group into the database

Paramètres
XoopsGroup$groupreference to the group to insert
Renvoie
bool TRUE if already in database and unchanged FALSE on failure

◆ insertUser()

insertUser ( XoopsUser  $user,
  $force = false 
)

insert a user into the database

Paramètres
XoopsUser$userreference to the user to insert
bool$force
Renvoie
bool TRUE if already in database and unchanged FALSE on failure
+ Voici le graphe des appelants de cette fonction :

◆ loginUser()

loginUser (   $uname,
  $pwd 
)

log in a user

Paramètres
string$unameusername as entered in the login form
string$pwdpassword entered in the login form
Renvoie
XoopsUser|false logged in XoopsUser, FALSE if failed to log in
+ Voici le graphe d'appel pour cette fonction :

◆ removeUsersFromGroup()

removeUsersFromGroup (   $group_id,
  $user_ids = array() 
)

remove a list of users from a group

Paramètres
int$group_idID of the group
array$user_idsarray of user-IDs
Renvoie
bool success?

◆ updateUserByField()

updateUserByField ( XoopsUser  $user,
  $fieldName,
  $fieldValue 
)

updates a single field in a users record

Paramètres
XoopsUser$userreference to the XoopsUser object
string$fieldNamename of the field to update
string$fieldValueupdated value for the field
Renvoie
bool TRUE if success or unchanged, FALSE on failure
+ Voici le graphe d'appel pour cette fonction :

◆ updateUsersByField()

updateUsersByField (   $fieldName,
  $fieldValue,
CriteriaElement  $criteria = null 
)

updates a single field in a users record

Paramètres
string$fieldNamename of the field to update
string$fieldValueupdated value for the field
CriteriaElement$criteriaCriteriaElement object
Renvoie
bool TRUE if success or unchanged, FALSE on failure

Documentation des champs

◆ $groupHandler

$groupHandler
protected

holds reference to group handler(DAO) class @access private

◆ $membershipHandler

$membershipHandler
protected

holds reference to membership handler(DAO) class

◆ $membersWorkingList

$membersWorkingList = array()
protected

holds temporary user objects

◆ $userHandler

$userHandler
protected

holds reference to user handler(DAO) class


La documentation de cette classe a été générée à partir du fichier suivant :